Merge pull request #2457 from threefoldtech/main_multipletimeservers #7
Workflow file for this run
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
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/[email protected] | |
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 |