From a35af4537608be7a4fbf05ace61becbdfee3aa7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20H=C3=B6ffner?= Date: Wed, 9 Oct 2024 11:18:45 +0200 Subject: [PATCH] build: deploy to the static branch again using JamesIves/github-pages-deploy-action, part of #4 --- .github/workflows/deploy.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3ef7e8e0b7..59e78367eb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,30 +1,32 @@ -name: Build and deploy Jekyll site to GitHub Pages +name: Build Jekyll site and deploy static HTML to the "static" branch on: workflow_dispatch: push: branches: - master -permissions: - contents: read - pages: write - id-token: write jobs: - build: + build-and-deploy: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 + + - name: Setup Ruby and dependencies + uses: ruby/setup-ruby@v1 with: ruby-version: '3' - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - uses: actions/configure-pages@v5 - - run: bundle exec jekyll build - - uses: actions/upload-pages-artifact@v3 + bundler-cache: true - deploy: - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/deploy-pages@v4 + - name: Build static HTML + run: bundle exec jekyll build + + - name: Deploy static HTML to the "static" branch + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: static + folder: _site + single-commit: true