Skip to content

Commit 21a3e4e

Browse files
Fix and refactor documentation deploy workflow (#474)
* Fix and refactor documentation deploy workflow * Potential fix for code scanning alert no. 21: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Fix documentation build workflow --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent c4f47f8 commit 21a3e4e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.changeset/fluffy-tips-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"web-csv-toolbox": patch
3+
---
4+
5+
Fix and refactor documentation deploy workflow

.github/workflows/.build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ jobs:
3535
!web-csv-toolbox-wasm/Cargo.toml
3636
!web-csv-toolbox-wasm/Cargo.lock
3737
!web-csv-toolbox-wasm/.gitignore
38+
- name: Build documentation
39+
run: pnpm run doc
40+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
41+
with:
42+
name: doc
43+
path: doc

.github/workflows/.release.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070

7171
# This job is used to deploy the documentation to GitHub Pages
72-
doc:
72+
deploy_doc:
7373
runs-on: ubuntu-latest
7474
# if the release job was successful, run this job
7575
needs:
@@ -87,12 +87,10 @@ jobs:
8787
id-token: write
8888
steps:
8989
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
90-
- name: Setup
91-
uses: ./.github/actions/setup
90+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
9291
with:
93-
skip-rust-setup: 'true'
94-
- name: Build documentation
95-
run: pnpm run doc
92+
name: doc
93+
path: doc
9694
- name: Configure GitHub Pages
9795
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
9896
- name: Upload GitHub Pages artifact

0 commit comments

Comments
 (0)