forked from weaveworks/ignite
-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
38 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Upload release assets | ||
|
||
on: | ||
workflow_dispatch: | ||
# Enable manual trigger of this action. | ||
inputs: | ||
tag: | ||
description: Git tag to checkout. | ||
required: true | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set tag name env var. | ||
run: echo "REL_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ env.REL_TAG }} | ||
- name: Build binaries | ||
run: make release | ||
- name: Prepare assets | ||
run: | | ||
mkdir -p release | ||
cp bin/releases/${{ env.REL_TAG }}/amd64/ignite release/ignite-amd64 | ||
cp bin/releases/${{ env.REL_TAG }}/amd64/ignited release/ignited-amd64 | ||
cp bin/releases/${{ env.REL_TAG }}/arm64/ignite release/ignite-arm64 | ||
cp bin/releases/${{ env.REL_TAG }}/arm64/ignited release/ignited-arm64 | ||
- name: Upload assets | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file_glob: true | ||
file: release/* | ||
tag: ${{ env.REL_TAG }} | ||
overwrite: true |
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