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 3d10e9e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ on:
- master

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
- run: bundle exec jekyll build
- uses: actions/upload-pages-artifact@v3

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

0 comments on commit 3d10e9e

Please sign in to comment.