Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mhersson committed Apr 20, 2024
1 parent 2346dd3 commit 5e4a641
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install curl
run: sudo apt-get install -y libcurl4-openssl-dev
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- name: Check zig version
run: zig version
- name: Build
run: zig build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: zig-out/bin/get-weather
asset_name: get-weather-linux-amd64
tag: ${{ github.ref }}

0 comments on commit 5e4a641

Please sign in to comment.