Skip to content

Commit

Permalink
build: deploy to the static branch again using JamesIves/github-pages…
Browse files Browse the repository at this point in the history
…-deploy-action, part of #4
  • Loading branch information
KonradHoeffner committed Oct 9, 2024
1 parent e990dc7 commit a35af45
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a35af45

Please sign in to comment.