Skip to content

Commit 0cbb66f

Browse files
author
Danielle Thomas
authored
Merge pull request #167 from ngrok/danielle/update-rust-docs
fix: Fix broken github pages deploy action
2 parents ae1b924 + 7066bae commit 0cbb66f

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

.github/workflows/docs.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
profile: minimal
1616
toolchain: stable
1717
override: true
18+
1819
- name: install protoc
1920
run: sudo apt-get -o Acquire::Retries=3 install -y protobuf-compiler
2021
- uses: actions-rs/cargo@v1
2122
with:
2223
command: doc
2324
args: --no-deps
25+
2426
- name: Archive docs
2527
shell: sh
2628
run: |
@@ -35,39 +37,26 @@ jobs:
3537
--exclude=.git \
3638
--exclude=.github \
3739
.
38-
- name: Upload artifact
39-
uses: actions/upload-artifact@v4
40+
41+
- name: Upload static files as artifact
42+
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
4043
with:
41-
name: github-pages
42-
path: ${{ runner.temp }}/artifact.tar
43-
retention-days: 1
44+
path:${{ runner.temp }}/artifact.tar
4445

45-
# Deploy job
46+
# Deployment job
4647
deploy:
47-
# Add a dependency to the build job
48-
needs: build
49-
5048
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
5149
permissions:
5250
pages: write # to deploy to Pages
5351
id-token: write # to verify the deployment originates from an appropriate source
5452

55-
# Deploy to the github-pages environment
5653
environment:
5754
name: github-pages
5855
url: ${{ steps.deployment.outputs.page_url }}
59-
60-
# Specify runner + deployment step
56+
6157
runs-on: ubuntu-latest
58+
needs: build
6259
steps:
63-
- name: Download artifact
64-
uses: actions/download-artifact@v4
65-
with:
66-
name: github-pages
67-
path: ./site
6860
- name: Deploy to GitHub Pages
6961
id: deployment
70-
uses: actions/deploy-pages@v3
71-
with:
72-
artifact_name: github-pages
73-
path: ./site
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)