File tree Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Expand file tree Collapse file tree 1 file changed +22
-7
lines changed Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
8
8
jobs :
9
- ci :
10
- name : CI
9
+ build :
11
10
runs-on : ubuntu-latest
12
11
steps :
13
12
- uses : actions/checkout@v2
43
42
- run : cargo run
44
43
- run : cp CNAME ./site/
45
44
- run : touch site/.nojekyll
46
- - uses : JamesIves/github-pages-deploy-action@releases/v3
47
- if : github.ref == 'refs/heads/master'
45
+
46
+ - uses : actions/upload-pages-artifact@v1.0.9
48
47
with :
49
- ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
- BRANCH : gh-pages
51
- FOLDER : site
48
+ path : site
49
+
50
+ deploy :
51
+ if : ${{ github.ref == 'refs/heads/master' }}
52
+
53
+ needs : build
54
+
55
+ permissions :
56
+ pages : write
57
+ id-token : write
58
+
59
+ runs-on : ubuntu-latest
60
+ steps :
61
+ - id : deployment
62
+ uses : actions/deploy-pages@v2.0.2
63
+
64
+ environment :
65
+ name : github-pages
66
+ url : ${{ steps.deployment.outputs.page_url }}
You can’t perform that action at this time.
0 commit comments