Skip to content

Commit

Permalink
fix, build: use custom GitHub pages build and deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Oct 8, 2024
1 parent bd3acd0 commit f85892d
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,26 @@ on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/jekyll-action@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'static'
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

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/deploy-pages@v4

0 comments on commit f85892d

Please sign in to comment.