-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 774 Bytes
/
Copy pathdeploy.yml
File metadata and controls
32 lines (28 loc) · 774 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
name: Deploy
on:
push:
tags:
- "v*"
jobs:
grand-extract:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Zig
run: |
curl -sS https://raw.githubusercontent.com/shavit/zig-install-action/refs/heads/master/install.sh | bash -s -- 0.15.1 x86_64-linux
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build
run: zig build -Doptimize=ReleaseSmall
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
gh release create "$TAG_NAME" \
--title "$TAG_NAME" \
zig-out/bin/*