-
Notifications
You must be signed in to change notification settings - Fork 744
41 lines (35 loc) · 849 Bytes
/
release.yml
File metadata and controls
41 lines (35 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build Release Binaries
on:
push:
tags:
- '*'
workflow_dispatch:
defaults:
run:
shell: bash -euxo pipefail {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2 tag
with:
version: 0.16.0
# I only want to disable the build cache, but don't see a good way to do
# that besides disabling all of the caching
use-cache: false
- name: Build
run: |
zig build release
- name: Upload Release Artifacts
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
(
cd zig-out/bin/
gh release create \
"${TAG}" \
--title "${TAG}" \
*
)