Skip to content

Commit

Permalink
update pages CI
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Payne committed Feb 7, 2025
1 parent 242a2cb commit d8d88a7
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,8 @@ concurrency:
cancel-in-progress: true

jobs:
pages:
runs-on: ubuntu-22.04

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand All @@ -31,12 +26,10 @@ jobs:
path: .yarn/cache
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- run: git lfs pull

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'

- name: Corepack
run: corepack enable
Expand All @@ -50,15 +43,19 @@ jobs:
- name: Build documentation
run: yarn docs

- name: Archive documentation
run: tar --directory documentation/www/ -cvf artifact.tar .

- name: Upload artifact
uses: actions/upload-artifact@v4
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ./artifact.tar
path: documentation/www/

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4

0 comments on commit d8d88a7

Please sign in to comment.