forked from prabirshrestha/dwm-win32
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 894 Bytes
/
ci.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
name: CI
on:
pull_request:
push:
branches:
- master
- ci
tags:
- 'v0.[0-9]+.[0-9]+'
- 'v0.[0-9]+.[0-9]+-beta.[0-9]+'
- 'v0.[0-9]+.[0-9]+-alpha.[0-9]+'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.10.1
- name: Get the build metadata
shell: bash
run: |
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build
shell: cmd
run: build.cmd
- name: Create draft release and upload asset
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: dwm-win32.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}