File tree Expand file tree Collapse file tree 1 file changed +12
-21
lines changed Expand file tree Collapse file tree 1 file changed +12
-21
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
pull_request :
6
6
push :
7
- branches-ignore :
8
- - main
9
7
10
8
jobs :
11
9
build :
@@ -38,30 +36,23 @@ jobs:
38
36
39
37
- run : poetry run mkdocs build
40
38
41
- - name : Upload Results
42
- uses : actions/upload-artifact@v4
39
+ - name : Upload for pages
40
+ uses : actions/upload-pages- artifact@v3
43
41
with :
44
- name : website
45
42
path : ./site
46
43
47
44
deploy :
48
- runs-on : ubuntu-22.04
45
+ environment :
46
+ name : github-pages
47
+ url : ${{ steps.deployment.outputs.page_url }}
48
+ runs-on : ubuntu-latest
49
49
needs : build
50
50
concurrency : ci-${{ github.ref }}
51
51
permissions :
52
- contents : write
53
- if : github.repository != 'msys2/msys2.github.io' || (github.event_name != 'pull_request' && github.ref == 'refs/heads/source')
52
+ pages : write
53
+ id-token : write
54
+ if : github.repository != 'msys2/msys2.github.io' || (github.event_name != 'pull_request' && github.ref == 'refs/heads/main')
54
55
steps :
55
- - name : Download Results
56
- uses : actions/download-artifact@v4
57
- with :
58
- name : website
59
- path : ./site
60
-
61
- - name : Deploy
62
- uses : peaceiris/actions-gh-pages@v3
63
- with :
64
- github_token : ${{ secrets.GITHUB_TOKEN }}
65
- publish_dir : ./site
66
- publish_branch : main
67
- cname : www.msys2.org
56
+ - name : Deploy to GitHub Pages
57
+ id : deployment
58
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments