-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.28 KB
/
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
46
47
48
49
50
51
52
53
54
name: Release
on:
push:
branches: [ "release-test" ]
tags: [ '[0-9]+.[0-9]+*' ]
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- os: windows-latest
extension: .exe
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Build release binary
run: cargo build --release --locked
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: target/release/pbls${{ matrix.extension }}
if-no-files-found: error
# publish:
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v4
# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# if: env.preview == 'false'
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: dist/*
# file_glob: true
# tag: ${{ github.ref_name }}
# overwrite: true
# - name: Upload binaries as artifact
# uses: actions/upload-artifact@v4
# if: env.preview == 'true'
# with:
# name: release
# path: dist/*