-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 935 Bytes
/
release.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: Release
on:
push:
tags:
- "v*.*.*"
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup toolchain install stable --profile minimal
- name: Install dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update
sudo apt install libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
src/package
- name: Package
run: cargo run --verbose
working-directory: src/package
- uses: softprops/action-gh-release@v1
with:
files: src/package/*.zip
fail_on_unmatched_files: true