-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cd: Upload artifact to workflow artifact storage as well as release
This provides a second path to help verify if there are issues with the main upload.
- Loading branch information
Showing
1 changed file
with
24 additions
and
5 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 |
---|---|---|
|
@@ -12,7 +12,6 @@ on: | |
branches: | ||
- main | ||
- master | ||
- actions # HACK for development purposes. | ||
|
||
jobs: | ||
prepare: | ||
|
@@ -272,9 +271,8 @@ jobs: | |
; | ||
shell: bash | ||
|
||
- name: Upload release build | ||
env: | ||
RELEASE_INFO: ${{ needs.prepare.outputs.releaseInfo }} | ||
- name: Build release artifacts | ||
id: artifacts | ||
run: | | ||
releaseBin='halcyon-${{ needs.prepare.outputs.version }}-'"${GITHUB_REF#refs/heads/}"'-${{ runner.os }}' | ||
mv bin "$releaseBin" | ||
|
@@ -289,5 +287,26 @@ jobs: | |
tar cfJ "$artifactPath" "$releaseBin" | ||
fi | ||
"$(npm bin)/ts-node-script" -- ./.github/scripts/cd/upload_release_artifact.ts "$artifactPath" "$artifactMimeType" '${{ secrets.GITHUB_TOKEN }}' | ||
echo "artifactPath=$artifactPath"; echo "::set-output name=artifactPath::$artifactPath" | ||
echo "artifactMimeType=$artifactMimeType"; echo "::set-output name=artifactMimeType::$artifactMimeType" | ||
echo "releaseBin=$releaseBin"; echo "::set-output name=releaseBin::$releaseBin" | ||
shell: bash | ||
|
||
- name: Upload artifacts to workflow run for diagnostic testing | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ steps.artifacts.outputs.releaseBin }} | ||
path: ${{ steps.artifacts.outputs.releaseBin }} | ||
retention-days: 7 | ||
|
||
- name: Upload artifacts to release | ||
env: | ||
RELEASE_INFO: ${{ needs.prepare.outputs.releaseInfo }} | ||
run: | | ||
"$(npm bin)/ts-node-script" -- \ | ||
./.github/scripts/cd/upload_release_artifact.ts \ | ||
'${{ steps.artifacts.outputs.artifactPath }}' \ | ||
'${{ steps.artifacts.outputs.artifactMimeType }}' \ | ||
'${{ secrets.GITHUB_TOKEN }}' \ | ||
; | ||
shell: bash |