-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1015 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
name: Release
on:
push:
tags: v*
env:
CARGO_TERM_COLOR: always
jobs:
build:
uses: ./.github/workflows/build.yml
with:
release: true
create-release:
needs: build
runs-on: ubuntu-22.04
steps:
- name: download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts/
- name: list artifacts
run: |
for artifact in $(ls artifacts/); do
if [[ -f $(echo artifacts/${artifact}/*.dmg) ]]; then
mv artifacts/${artifact}/*.dmg artifacts/${artifact}.dmg
continue
fi
zip -j artifacts/${artifact}.zip artifacts/${artifact}/**
done
- name: new release
uses: ncipollo/release-action@v1
id: create_release
with:
draft: true
prerelease: false
artifacts: artifacts/*.zip, artifacts/**/*.dmg
generateReleaseNotes: true
env:
GITHUB_TOKEN: ${{ github.token }}