Skip to content

Commit

Permalink
chore: rm deprecated actions, rewrite, consolidate restore ci build, …
Browse files Browse the repository at this point in the history
…attempt 4
  • Loading branch information
mwfarb committed Jun 20, 2024
1 parent 92206b9 commit 3a7d67e
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,36 @@ on:
- gh-pages
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/jekyll-action@v2.5
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
pre_build_commands: git config --global http.version HTTP/1.1; apk fetch git-lfs;
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'
ruby-version: '3.5'
bundler-cache: true
- uses: actions/configure-pages@v5
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
- uses: actions/upload-pages-artifact@v3

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: github-pages
steps:
- uses: actions/deploy-pages@v4

html-link-check:
needs: [github-pages]
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.5'
- name: Install any new ruby packages
run: make install
- name: Dependencies
run: make update
- name: Build site
run: make build
- name: Check html
run: make check

0 comments on commit 3a7d67e

Please sign in to comment.