-
-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (31 loc) · 976 Bytes
/
build.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
name: Build ui-compiler.exe and optionally Build Assets
on:
push:
tags:
- '*'
jobs:
windows_build:
name: Windows Build
runs-on: windows-latest
steps:
# Download the repository
- uses: actions/checkout@v2
# Caching for Rust
- name: Cache rust builds
uses: Swatinem/rust-cache@v2
- name: Build ui-compiler.exe
run: cargo build
- name: Download and install dependencies, then build assets
run: python build.py github_actions
# Publish a release (tagged commits)
# For more info on options see: https://github.com/softprops/action-gh-release
- name: Release (tag)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
with:
files: |
output/*.7z
target/debug/ui-compiler.exe
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}