-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 850 Bytes
/
cd.yml
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
name: Continuous Deployment
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
publish:
name: Publishing
runs-on: ubuntu-latest
steps:
- name: Setup Zig
uses: goto-bus-stop/[email protected]
with:
version: 0.13.0
- uses: actions/checkout@v3
- name: Building
run: zig build
- name: Packaging final binary
run: |
cd zig-out/
RELEASE_NAME=motw
zip $RELEASE_NAME.zip './bin/motw.exe' './lib/motw.dll'
shasum -a 256 $RELEASE_NAME.zip > $RELEASE_NAME.sha256
- name: Releasing assets
uses: softprops/action-gh-release@v1
with:
files: |
zig-out/motw.zip
zig-out/motw.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
command: publish