Skip to content

Commit

Permalink
Merge pull request #2474 from threefoldtech/update-release
Browse files Browse the repository at this point in the history
adds github action to build update-worker
  • Loading branch information
xmonader authored Nov 6, 2024
2 parents 9998be1 + d6ad9c6 commit 9f54368
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/zos-update-worker-release.yml
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

0 comments on commit 9f54368

Please sign in to comment.