File tree Expand file tree Collapse file tree 2 files changed +39
-21
lines changed Expand file tree Collapse file tree 2 files changed +39
-21
lines changed Original file line number Diff line number Diff line change 1
- name : auto- deploy hfidelis gh-pages
1
+ name : gh-pages deploy ~ hfidelis
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ branches : ['main']
6
+
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : ' pages'
16
+ cancel-in-progress : true
7
17
8
18
jobs :
9
- build-deploy :
19
+ deploy :
20
+ environment :
21
+ name : github-pages
22
+ url : ${{ steps.deployment.outputs.page_url }}
10
23
runs-on : ubuntu-latest
11
-
12
24
steps :
13
- - name : Checkout ποΈ
14
- uses : actions/checkout@master
25
+ - name : checkout ποΈ
26
+ uses : actions/checkout@v4
27
+
28
+ - name : setup node.js π¦
29
+ uses : actions/setup-node@v3
15
30
with :
16
- persist-credentials : false
31
+ node-version : 18
32
+ cache : ' npm'
17
33
18
- - name : Install Dependencies π§
19
- run : yarn install
34
+ - name : install dependencies π§
35
+ run : npm install
20
36
21
- - name : Build Project ποΈ
22
- run : yarn build
23
- env :
24
- NODE_ENV : production
37
+ - name : build project ποΈ
38
+ run : npm run build
25
39
26
- - name : Deploy Github Pages π
27
- if : ${{ github.event_name != 'pull_request' }}
28
- uses : peaceiris/actions-gh-pages@v3
29
- with :
30
- github_token : ${{ secrets.GITHUB_TOKEN }}
31
- publish_dir : dist
40
+ - name : setup pages π
41
+ uses : actions/configure-pages@v3
42
+
43
+ - name : upload artifact π¦
44
+ uses : actions/upload-pages-artifact@v2
45
+ with :
46
+ path : ' ./dist'
47
+
48
+ - name : deploy gh-pages hfidelis.github.io π
49
+ id : deployment
50
+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change @@ -13,5 +13,4 @@ export default defineConfig({
13
13
'@' : fileURLToPath ( new URL ( './src' , import . meta. url ) )
14
14
}
15
15
} ,
16
- base : './'
17
16
} )
You canβt perform that action at this time.
0 commit comments