Skip to content

Commit 420f282

Browse files
committed
ci: add GitHub Actions workflow for docs deployment to GitHub Pages
1 parent d5290aa commit 420f282

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
id-token: write
1515

1616
concurrency:
17-
group: 'pages'
17+
group: pages
1818
cancel-in-progress: true
1919

2020
jobs:
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version: 20
31-
cache: 'npm'
31+
cache: npm
3232
cache-dependency-path: docs/package-lock.json
3333

3434
- name: Install dependencies
@@ -45,12 +45,12 @@ jobs:
4545
path: docs/dist
4646

4747
deploy:
48+
needs: build
49+
runs-on: ubuntu-latest
4850
environment:
4951
name: github-pages
5052
url: ${{ steps.deployment.outputs.page_url }}
51-
runs-on: ubuntu-latest
52-
needs: build
5353
steps:
5454
- name: Deploy to GitHub Pages
5555
id: deployment
56-
uses: actions/deploy-pages@v4
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)