Skip to content

Commit 395b1df

Browse files
committed
fix: pipeline
1 parent 84b2d87 commit 395b1df

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/static.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Deploy to GitHub Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
86

9-
# Allows you to run this workflow manually from the Actions tab
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139
permissions:
1410
contents: read
1511
pages: write
1612
id-token: write
1713

18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2014
concurrency:
2115
group: "pages"
2216
cancel-in-progress: false
2317

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
@@ -31,13 +24,20 @@ jobs:
3124
steps:
3225
- name: Checkout
3326
uses: actions/checkout@v4
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: '20'
31+
- name: Install dependencies
32+
run: npm install
33+
- name: Build
34+
run: npm run build
3435
- name: Setup Pages
3536
uses: actions/configure-pages@v5
3637
- name: Upload artifact
3738
uses: actions/upload-pages-artifact@v3
3839
with:
39-
# Upload entire repository
40-
path: './docs'
40+
path: './build'
4141
- name: Deploy to GitHub Pages
4242
id: deployment
4343
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)