File tree 1 file changed +30
-17
lines changed
1 file changed +30
-17
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy site
1
+ name : Deploy static content to Pages
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
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 :
10
- runs-on : ubuntu-20.04
19
+ deploy :
20
+ environment :
21
+ name : github-pages
22
+ url : ${{ steps.deployment.outputs.page_url }}
23
+ runs-on : ubuntu-latest
11
24
steps :
12
- - uses : actions/checkout@v3
13
- - name : Setup NodeJS
25
+ - name : Checkout
26
+ uses : actions/checkout@v3
27
+ - name : Install Node.js
14
28
uses : actions/setup-node@v3
15
29
with :
16
30
node-version : 16
17
-
18
- - name : Install dependencies & build
19
- run : |
20
- npm ci
21
- npm run build
22
-
23
- - name : Deploy
24
- uses : peaceiris/actions-gh-pages@v3
31
+ - run : npm ci
32
+ - run : npm run build
33
+ - name : Setup Pages
34
+ uses : actions/configure-pages@v1
35
+ - name : Upload artifact
36
+ uses : actions/upload-pages-artifact@v1
25
37
with :
26
- publish_dir : ./_site
27
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
- cname : tc39.es
38
+ path : _site
39
+ - name : Deploy to GitHub Pages
40
+ id : deployment
41
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments