forked from torrust/torrust-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 861 Bytes
/
nightly.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
name: Nightly Release
on:
workflow_call:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
branch: develop
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.branch }}
- name: Run build
run: |
cargo build --verbose --release
- name: Archive Asset
run: |
artifact_name="$(uname)_$(uname -m)_bin.zip"
echo "artifact_name=$artifact_name" >> $GITHUB_ENV
zip $artifact_name -9 -r ./target/release -x "*.d" "*.rlib" \
"target/release/.*" "target/release/build/*" "target/release/deps/*" "target/release/examples/*" "target/release/incremental/*"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.artifact_name }}
tag_name: nightly