From 3c750979491d395f9f7d1831439c605bb7d7ff1d Mon Sep 17 00:00:00 2001 From: Luan Himmlisch Date: Fri, 27 Sep 2024 23:07:01 -0600 Subject: [PATCH] Changed github pages deploy to static --- .../{jekyll-gh-pages.yml => static.yml} | 33 ++++++++----------- 1 file changed, 13 insertions(+), 20 deletions(-) rename .github/workflows/{jekyll-gh-pages.yml => static.yml} (77%) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/static.yml similarity index 77% rename from .github/workflows/jekyll-gh-pages.yml rename to .github/workflows/static.yml index 30060d9..9bdb3e7 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/static.yml @@ -1,5 +1,5 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages dependencies preinstalled +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages on: # Runs on pushes targeting the default branch @@ -22,12 +22,19 @@ concurrency: cancel-in-progress: false jobs: - # Build job - build: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Set up Node.js uses: actions/setup-node@v2 with: @@ -39,24 +46,10 @@ jobs: - name: Run npm build run: npm run build - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./build - destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: + with: + path: './build' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4