-
Notifications
You must be signed in to change notification settings - Fork 165
42 lines (34 loc) · 1020 Bytes
/
deploy.yml
File metadata and controls
42 lines (34 loc) · 1020 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
42
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@v2
with:
version: 0.15.1
- name: Extract version
run: echo "MICROZIG_VERSION=$(zig build package -- get-version)" >> $GITHUB_ENV
- name: Assemble Packages
run: zig build package -- https://github.com/ZigEmbeddedGroup/microzig/releases/download
- name: Create Release Draft
uses: ncipollo/release-action@v1
id: create_release
with:
tag: ${{ env.TAG_NAME }}
artifactErrorsFailBuild: true
draft: true
generateReleaseNotes: true
artifacts: boxzer-out/${{ env.MICROZIG_VERSION }}/*