-
Notifications
You must be signed in to change notification settings - Fork 102
55 lines (45 loc) · 1.37 KB
/
deploy.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Continuous Deployment
permissions:
contents: write
on:
push:
tags:
- "*.*.*"
jobs:
deploy-packages:
runs-on: macos-latest
steps:
- name: Extract tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- name: Extract version
run: echo "MICROZIG_VERSION=$(zig build package -- get-version)" >> $GITHUB_ENV
- name: Assemble Packages
run: zig build package -- https://microzig.tech/downloads/microzig
- name: Create Release Draft
uses: ncipollo/release-action@v1
id: create_release
with:
tag: ${{ env.TAG_NAME }}
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true
- name: Create Tarball
run: |
tar -czvf boxzer-out.tar.gz -C boxzer-out .
- name: Upload Artifact to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: boxzer-out.tar.gz
asset_name: boxzer-out.tar.gz
asset_content_type: application/gzip