Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Deploy GitHub Pages

on:
push:
workflow_run:
workflows:
- CI
types:
- completed
branches:
- main
workflow_dispatch:
Expand All @@ -12,12 +16,16 @@ permissions:
id-token: write

concurrency:
group: pages
cancel-in-progress: false
group: github-pages
cancel-in-progress: true

jobs:
build:
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout code
Expand All @@ -32,7 +40,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build site
- name: Build static site
run: npm run build

- name: Configure GitHub Pages
Expand All @@ -43,14 +51,6 @@ jobs:
with:
path: dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

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