Skip to content

Commit

Permalink
fix: GH Actions pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmaestro committed Nov 19, 2024
1 parent 420ecd3 commit 882627b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,22 @@ jobs:
- ref: "0.2.0"
- ref: "0.1.0"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ matrix.ref == 'main' }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.ref }}
if: ${{ matrix.ref != 'main' }}
- name: Pin the release to main
run: echo "RELEASE=main" >> $GITHUB_ENV
run: echo "RELEASE=main" >> "$GITHUB_ENV"
if: ${{ matrix.ref == 'main' }}
- name: Patch older branches
run: |
ref="${{ matrix.ref }}"
[[ "$ref" == "main" ]] && exit
v_major="$(echo "$ref" | cut -d. -f1)"
v_minor="$(echo "$ref" | cut -d. -f2)"
v_patch="$(echo "$ref" | cut -d. -f3)"
[[ $v_minor -gt 10 ]] && exit
Expand Down Expand Up @@ -102,18 +100,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch artifacts (first root then others so the ordering is correct)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: main-root
path: ${{ github.workspace }}/docs/book
- name: Fetch artifacts (first root then others so the ordering is correct)
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/docs/pages
- name: Install pages
run: mv ${{ github.workspace }}/docs/pages/* ${{ github.workspace }}/docs/book/
- name: publish
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
Expand Down

0 comments on commit 882627b

Please sign in to comment.