-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.46 KB
/
Copy pathrelease.yml
File metadata and controls
44 lines (41 loc) · 1.46 KB
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
name: Release
permissions:
contents: write
on:
release:
types: [created]
jobs:
upload-assets:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: knicknic/os-specific-run@v1.0.3
with:
macos: echo "Hi from macos"
linux: |
echo "Hi from linux"
sudo apt update
sudo apt install libgtk-3-dev
windows: echo "Hi from windows"
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: factory_management_utils
tar: unix
# (optional) On which platform to distribute the `.zip` file.
# [default value: windows]
# [possible values: all, unix, windows, none]
zip: windows
# Archive name (non-extension portion of filename) to be uploaded.
# [default value: $bin-$target]
# [possible values: the following variables and any string]
# variables:
# - $bin - Binary name (non-extension portion of filename).
# - $target - Target triple.
# - $tag - Tag of this release.
# When multiple binary names are specified, default archive name or $bin variable cannot be used.
archive: $bin-$tag-$target
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}