-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI: upload-artifacts + HappyX (#250)
- Loading branch information
1 parent
70ca062
commit 2498063
Showing
4 changed files
with
42 additions
and
30 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
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 |
---|---|---|
|
@@ -31,33 +31,45 @@ jobs: | |
sha: ${{ steps.source-run-info.outputs.sourceHeadSha }} | ||
description: Deploying site to Netlify. Please wait... | ||
state: pending | ||
- name: 'Download artifact' | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
var artifacts = await github.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: ${{github.event.workflow_run.id }}, | ||
}); | ||
console.log("Target artifact: " + "build-${{ steps.source-run-info.outputs.sourceHeadSha }}") | ||
var matchArtifact = artifacts.data.artifacts.filter((artifact) => { | ||
console.log("Found artifacts: " + artifact.name) | ||
return artifact.name == "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" | ||
})[0]; | ||
if (matchArtifact == undefined) { | ||
core.setFailed('Artifact not found!'); | ||
} | ||
var download = await github.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact.id, | ||
archive_format: 'zip', | ||
}); | ||
var fs = require('fs'); | ||
fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); | ||
- run: rm -rf docs | ||
- run: unzip -d docs/ docs.zip | ||
# - name: 'Download artifacts' | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" | ||
# path: docs/ | ||
- name: 'Download artifacts' | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
workflow: netlify_build_docs.yml # Name of the workflow that created the artifact | ||
name: "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" # Name of the artifact | ||
path: docs/ # Optional path to extract to | ||
# - name: 'Download artifact' | ||
# uses: actions/[email protected] | ||
# with: | ||
# script: | | ||
# var artifacts = await github.actions.listWorkflowRunArtifacts({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# run_id: ${{github.event.workflow_run.id }}, | ||
# }); | ||
# console.log("Target artifact: " + "build-${{ steps.source-run-info.outputs.sourceHeadSha }}") | ||
# var matchArtifact = artifacts.data.artifacts.filter((artifact) => { | ||
# console.log("Found artifacts: " + artifact.name) | ||
# return artifact.name == "build-${{ steps.source-run-info.outputs.sourceHeadSha }}" | ||
# })[0]; | ||
# if (matchArtifact == undefined) { | ||
# core.setFailed('Artifact not found!'); | ||
# } | ||
# var download = await github.actions.downloadArtifact({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# artifact_id: matchArtifact.id, | ||
# archive_format: 'zip', | ||
# }); | ||
# var fs = require('fs'); | ||
# fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); | ||
#- run: unzip -d docs/ docs.zip | ||
- run: echo Deploy Alias = ${{ env.GITHUB_SHA_SHORT }} | ||
- uses: jsmrcaga/action-netlify-deploy@master | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ requires "parsetoml >= 0.7.0" | |
requires "jsony >= 1.1.5" | ||
|
||
task docsdeps, "install dependendencies required for doc building": | ||
exec "nimble -y install [email protected] [email protected] nimoji nimpy karax@1.2.2 [email protected]" | ||
exec "nimble -y install [email protected] [email protected] nimoji nimpy karax@1.3.3 [email protected]" | ||
|
||
task test, "General tests": | ||
for file in ["tsources.nim", "tblocks.nim", "tnimib.nim", "trenders.nim"]: | ||
|