-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (42 loc) · 1.22 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
on:
push:
branches:
- master
name: Create release
jobs:
build:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create archives
run: |
find . -maxdepth 1 -type d ! -iname ".*" -print0|xargs -0 -I% -P$(nproc) bash -c 'cd % && zip -q -9 -r ../%.zip * && echo "% complete."'
ls *.zip||exit 1
- name: Remove tag and release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Tag as snapshot
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "snapshot"
tag_exists_error: false
message: "Latest release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ./*.zip
tag: snapshot
overwrite: true
promote: true
body: "nQuake asset release."