|
24 | 24 | permissions: |
25 | 25 | contents: write |
26 | 26 | pages: write |
27 | | - id-token: write |
28 | 27 |
|
29 | 28 | jobs: |
30 | 29 | publish_docs: |
@@ -65,49 +64,20 @@ jobs: |
65 | 64 | make release-docs VERSION="$VERSION" ALIAS="$ALIAS" |
66 | 65 | poetry run mike set-default --push latest |
67 | 66 |
|
68 | | - - name: Setup Pages |
69 | | - id: pages |
70 | | - uses: actions/configure-pages@v2 |
71 | | - - name: Upload latest API docs |
72 | | - uses: actions/upload-pages-artifact@v1 |
73 | | - with: |
74 | | - path: api |
75 | | - - name: Upload versioned API docs |
76 | | - uses: actions/upload-pages-artifact@v1 |
| 67 | + - name: Release API docs |
| 68 | + uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0 |
77 | 69 | env: |
78 | 70 | VERSION: ${{ inputs.version }} |
79 | 71 | with: |
80 | | - path: ${{ env.VERSION }}/api |
81 | | - |
82 | | - # Deployment job |
83 | | - deploy: |
84 | | - concurrency: |
85 | | - group: on-docs-deploy |
86 | | - environment: |
87 | | - name: gh-pages |
88 | | - url: ${{ steps.deployment.outputs.page_url }} |
89 | | - runs-on: ubuntu-latest |
90 | | - needs: publish_docs |
91 | | - steps: |
92 | | - - name: Deploy to GitHub Pages |
93 | | - id: deployment |
94 | | - uses: actions/deploy-pages@v1 |
95 | | - |
96 | | - # Maintenance: Migrate to new gh-pages action |
97 | | - # - name: Release API docs |
98 | | - # uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0 |
99 | | - # env: |
100 | | - # VERSION: ${{ inputs.version }} |
101 | | - # with: |
102 | | - # github_token: ${{ secrets.GITHUB_TOKEN }} |
103 | | - # publish_dir: ./api |
104 | | - # keep_files: true |
105 | | - # destination_dir: ${{ env.VERSION }}/api |
106 | | - # - name: Release API docs to latest |
107 | | - # if: ${{ inputs.alias == 'latest' }} |
108 | | - # uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0 |
109 | | - # with: |
110 | | - # github_token: ${{ secrets.GITHUB_TOKEN }} |
111 | | - # publish_dir: ./api |
112 | | - # keep_files: true |
113 | | - # destination_dir: latest/api |
| 72 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 73 | + publish_dir: ./api |
| 74 | + keep_files: true |
| 75 | + destination_dir: ${{ env.VERSION }}/api |
| 76 | + - name: Release API docs to latest |
| 77 | + if: ${{ inputs.alias == 'latest' }} |
| 78 | + uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0 |
| 79 | + with: |
| 80 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 81 | + publish_dir: ./api |
| 82 | + keep_files: true |
| 83 | + destination_dir: latest/api |
0 commit comments