Skip to content

Commit c13b489

Browse files
committed
Add GitHub Actions workflow to host docs in GitHub pages
1 parent dbaaf26 commit c13b489

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions: {}
7+
8+
concurrency:
9+
group: ${{ github.workflow }}
10+
11+
jobs:
12+
docs:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- run: cargo doc --no-deps --document-private-items
24+
- run: echo '<meta http-equiv="refresh" content="0;url=thrust">' > target/doc/index.html
25+
- uses: actions/configure-pages@v5
26+
- uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: 'target/doc'
29+
- id: deployment
30+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)