Skip to content

Commit bb6866c

Browse files
committed
revert(ci): new gh-pages beta doesn't work either; reverting as gh-pages is disrupted
1 parent 29a8457 commit bb6866c

File tree

2 files changed

+14
-45
lines changed

2 files changed

+14
-45
lines changed

.github/workflows/rebuild_latest_docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
permissions:
2626
contents: write
2727
pages: write
28-
id-token: write
2928
uses: ./.github/workflows/reusable_publish_docs.yml
3029
with:
3130
version: ${{ inputs.latest_published_version }}

.github/workflows/reusable_publish_docs.yml

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ on:
2424
permissions:
2525
contents: write
2626
pages: write
27-
id-token: write
2827

2928
jobs:
3029
publish_docs:
@@ -65,49 +64,20 @@ jobs:
6564
make release-docs VERSION="$VERSION" ALIAS="$ALIAS"
6665
poetry run mike set-default --push latest
6766
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
7769
env:
7870
VERSION: ${{ inputs.version }}
7971
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

Comments
 (0)