This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #719 from darkowlzz/release-assets-workflow
workflow: Upload release assets
- Loading branch information
Showing
4 changed files
with
56 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Upload release assets | ||
|
||
on: | ||
workflow_dispatch: | ||
# Enable manual trigger of this action. | ||
inputs: | ||
tag: | ||
description: Git tag to checkout. | ||
required: true | ||
|
||
env: | ||
DOCKER_TTY: "" # using `docker run -t` seems to not work in github actions, maybe related to https://github.com/actions/runner/issues/241 | ||
REL_TAG: ${{ github.event.inputs.tag }} | ||
|
||
jobs: | ||
build-and-upload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ env.REL_TAG }} | ||
- name: Login to container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: docker.io | ||
username: ${{ secrets.CR_USER }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Build binaries and push sandbox image | ||
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 }} | ||
tag: ${{ env.REL_TAG }} | ||
file_glob: true | ||
file: release/* | ||
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
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