Skip to content

Commit ec34036

Browse files
committed
ci: Switch to branch-less GitHub pages workflow
1 parent 6e10eb9 commit ec34036

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/documentation.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
1217
jobs:
1318
docs:
1419
name: All crates
@@ -61,10 +66,13 @@ jobs:
6166
mv target/doc/* doc/
6267
mv bindings/matrix-sdk-crypto-js/docs/* doc/bindings/matrix-sdk-crypto-js/
6368
64-
- name: Deploy documentation
69+
- name: Upload artifact
6570
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
66-
uses: peaceiris/actions-gh-pages@v3
71+
uses: actions/upload-pages-artifact@v1
6772
with:
68-
github_token: ${{ secrets.GITHUB_TOKEN }}
69-
publish_dir: ./doc/
70-
force_orphan: true
73+
path: './doc/'
74+
75+
- name: Deploy to GitHub Pages
76+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77+
id: deployment
78+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)