Skip to content

Update release gh action #4

Update release gh action

Update release gh action #4

Workflow file for this run

# Taken from https://blog.orhun.dev/zig-bits-03/
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
publish-github:
name: Publish on GitHub
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
TARGET:
[
x86_64-linux,
aarch64-linux,
arm-linux,
riscv64-linux,
i386-linux,
]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0
- name: Build
run: zig build --release=small -Dtarget=${{ matrix.TARGET }} --summary all
- name: Upload the binary
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
file: zig-out/bin/waybar-wise-fx-rate
asset_name: waybar-wise-fx-rate-${{ matrix.TARGET }}*
overwrite: true
repo_token: ${{ secrets.WAYBAR_WISE_FX_RATE_PAT }}