-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,12 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
# with download-artifact v4 we need to use a matrix to get HTML and changelog artifacts | ||
# because the artifacts will have been uploaded separately to ensure unique names | ||
strategy: | ||
matrix: | ||
required-artifacts: ["docs", "changelog"] | ||
|
||
steps: | ||
- name: "Download built documentation" | ||
uses: actions/[email protected] | ||
|
@@ -35,7 +41,7 @@ jobs: | |
run_id: ${{ env.RUN_ID }}, | ||
}); | ||
var matchArtifact = artifacts.data.artifacts.filter((artifact) => { | ||
return artifact.name == "docs" | ||
return artifact.name == "${{ matrix.required-artifacts }}}" | ||
})[0]; | ||
var download = await github.rest.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
|
@@ -44,9 +50,9 @@ jobs: | |
archive_format: 'zip', | ||
}); | ||
var fs = require('fs'); | ||
fs.writeFileSync('${{ env.WORKSPACE }}/docs.zip', Buffer.from(download.data)); | ||
fs.writeFileSync('${{ env.WORKSPACE }}/${{ matrix.required-artifacts }}.zip', Buffer.from(download.data)); | ||
- run: unzip docs.zip | ||
- run: unzip ${{ matrix.required-artifacts }}.zip | ||
|
||
- id: get-deploy-id | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters