Skip to content

Commit

Permalink
Split build and deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Feb 3, 2025
1 parent e280927 commit 884d0c2
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: publish website
on:
workflow_dispatch:
push:
branches:
- master

jobs:
publish:
build:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -29,8 +27,31 @@ jobs:
- name: Build website
run: make html

- name: Deploy changes
uses: JamesIves/[email protected]
- name: Linkcheck
run: make linkcheck

- name: Upload website artifacts
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages
folder: build/html
path: build/html/


deploy:
if: ${{ github.ref == 'refs/heads/master' }}

needs: build

permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 884d0c2

Please sign in to comment.