We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
actions/deploy-pages
1 parent 6bd138c commit 9ddea34Copy full SHA for 9ddea34
.github/workflows/main.yml
@@ -6,8 +6,7 @@ on:
6
pull_request:
7
8
jobs:
9
- ci:
10
- name: CI
+ build:
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v2
@@ -43,9 +42,25 @@ jobs:
43
42
- run: cargo run
44
- run: cp CNAME ./site/
45
- run: touch site/.nojekyll
46
- - uses: JamesIves/github-pages-deploy-action@releases/v3
47
- if: github.ref == 'refs/heads/master'
+
+ - uses: actions/[email protected]
48
with:
49
- ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
- BRANCH: gh-pages
51
- FOLDER: site
+ path: site
+ deploy:
+ 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/[email protected]
63
64
+ environment:
65
+ name: github-pages
66
+ url: ${{ steps.deployment.outputs.page_url }}
0 commit comments