-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds github action to build update-worker
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
- Loading branch information
1 parent
9998be1
commit d6ad9c6
Showing
1 changed file
with
43 additions
and
0 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,43 @@ | ||
name: Update Worker Release | ||
|
||
defaults: | ||
run: | ||
working-directory: tools/zos-update-worker | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
zos-update-worker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install GO | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Build zos update worker | ||
run: | | ||
make build | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/get-release@v1.2.3 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload Release Asset for zos update worker | ||
id: upload-release-asset-worker | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: tools/zos-update-worker/bin/zos-update-worker | ||
asset_name: zos-update-worker | ||
asset_content_type: application/x-pie-executable |