From b51c2b5de6e075917acc644ed855e2841f8ec70a Mon Sep 17 00:00:00 2001 From: Shane Curcuru Date: Tue, 23 May 2023 10:44:04 -0400 Subject: [PATCH 1/3] Experimenting with new pages actions --- .github/workflows/pages.yml | 62 ------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml deleted file mode 100644 index 15a5d5e..0000000 --- a/.github/workflows/pages.yml +++ /dev/null @@ -1,62 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll site to Pages - -on: - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.1' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 1 # Increment this number if you need to re-download cached gems - - name: Setup Pages - id: pages - uses: actions/configure-pages@v2 - - name: Build with Jekyll - # Outputs to the './_site' directory by default - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - env: - JEKYLL_ENV: production - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v1 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 From ea16b7fc99b8061754703b69b66ddd3e6c2031c5 Mon Sep 17 00:00:00 2001 From: Shane Curcuru Date: Tue, 23 May 2023 10:56:23 -0400 Subject: [PATCH 2/3] Create jekyll-build-pages.yml Uses suggested improved actions script --- .github/workflows/jekyll-build-pages.yml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/jekyll-build-pages.yml diff --git a/.github/workflows/jekyll-build-pages.yml b/.github/workflows/jekyll-build-pages.yml new file mode 100644 index 0000000..94feabd --- /dev/null +++ b/.github/workflows/jekyll-build-pages.yml @@ -0,0 +1,31 @@ +# From https://github.com/actions/jekyll-build-pages +name: Build And Deploy Jekyll to Pages +on: + push: + branches: ["main"] +permissions: + contents: read + pages: write + id-token: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Build + uses: actions/jekyll-build-pages@v1.0.7 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} From c2af6e89732c1918711e72b34154afe34b5f21c8 Mon Sep 17 00:00:00 2001 From: Shane Curcuru Date: Tue, 23 May 2023 11:22:41 -0400 Subject: [PATCH 3/3] Comment out, since it doesn't work either --- .github/workflows/jekyll-build-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-build-pages.yml b/.github/workflows/jekyll-build-pages.yml index 94feabd..b7efa59 100644 --- a/.github/workflows/jekyll-build-pages.yml +++ b/.github/workflows/jekyll-build-pages.yml @@ -2,7 +2,7 @@ name: Build And Deploy Jekyll to Pages on: push: - branches: ["main"] + branches: ["test"] # Comment out permissions: contents: read pages: write