|
1 | 1 | name: Doc |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
7 | | - workflow_dispatch: |
8 | | - |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + workflow_dispatch: |
9 | 8 |
|
10 | 9 | permissions: |
11 | | - contents: write |
12 | | - pages: write |
13 | | - id-token: write |
| 10 | + contents: write |
| 11 | + pages: write |
| 12 | + id-token: write |
14 | 13 |
|
15 | 14 | concurrency: |
16 | | - group: "pages" |
17 | | - cancel-in-progress: true |
| 15 | + group: "pages" |
| 16 | + cancel-in-progress: true |
18 | 17 |
|
19 | 18 | jobs: |
20 | | - deploy: |
21 | | - environment: |
22 | | - name: github-pages |
23 | | - url: ${{ steps.deployment.outputs.page_url }} |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - name: Checkout Repository |
27 | | - uses: actions/checkout@v3 |
28 | | - - uses: actions-rs/toolchain@v1 |
29 | | - with: |
30 | | - toolchain: nightly |
31 | | - - run: cargo doc --workspace --no-deps |
32 | | - - uses: "finnp/create-file-action@master" |
33 | | - env: |
34 | | - FILE_NAME: "./target/doc/index.html" |
35 | | - FILE_DATA: '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=''./azalea''"/></head></html>' # Redirect to default page |
36 | | - |
37 | | - - name: Setup Pages |
38 | | - uses: actions/configure-pages@v2 |
39 | | - - name: Upload artifact |
40 | | - uses: actions/upload-pages-artifact@v1 |
41 | | - with: |
42 | | - path: './target/doc/' |
43 | | - - name: Deploy to GitHub Pages |
44 | | - id: deployment |
45 | | - uses: actions/deploy-pages@v1 |
| 19 | + deploy: |
| 20 | + environment: |
| 21 | + name: github-pages |
| 22 | + url: ${{ steps.deployment.outputs.page_url }} |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - name: Checkout Repository |
| 26 | + uses: actions/checkout@v3 |
| 27 | + - uses: actions-rs/toolchain@v1 |
| 28 | + with: |
| 29 | + toolchain: nightly |
| 30 | + - run: cargo doc --workspace --no-deps |
| 31 | + - uses: "finnp/create-file-action@master" |
| 32 | + env: |
| 33 | + FILE_NAME: "./target/doc/index.html" |
| 34 | + FILE_DATA: '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=''./azalea''"/></head></html>' # Redirect to default page |
| 35 | + |
| 36 | + - name: Setup Pages |
| 37 | + uses: actions/configure-pages@v2 |
| 38 | + - name: Upload artifact |
| 39 | + uses: actions/upload-pages-artifact@v3 |
| 40 | + with: |
| 41 | + path: "./target/doc/" |
| 42 | + - name: Deploy to GitHub Pages |
| 43 | + id: deployment |
| 44 | + uses: actions/deploy-pages@v4 |
0 commit comments