forked from skullernet/q2pro
-
Notifications
You must be signed in to change notification settings - Fork 5
111 lines (97 loc) · 3.11 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Q2Pro Release
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
generate_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: actionquake/q2pro
ref: ${{ github.ref }}
- name: version
run: echo "::set-output name=version::$(git rev-parse --short HEAD)"
id: version
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: q2pro_${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Download Linux x64 clang build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-lin-clang-x86_64
skip_unpack: true
- name: Download Linux x64 gcc build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-lin-gcc-x86_64
skip_unpack: true
- name: Download Linux ARM x64 build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-lin-arm64
skip_unpack: true
# - name: Download Win MSVC x86 build artifacts
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: build.yml
# name: q2pro-msvc-x86
# skip_unpack: true
- name: Download Win MSVC x64 build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-msvc-x64
skip_unpack: true
# - name: Download Win mingw i686 build artifacts
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: build.yml
# name: q2pro-mingw-i686
# skip_unpack: true
- name: Download Win mingw x64 build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-mingw-x86_64
skip_unpack: true
- name: Download Darwin x86_64 build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-darwin-x86_64
skip_unpack: true
- name: Download Darwin arm64 build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: q2pro-darwin-arm64
skip_unpack: true
- name: Upload dist tarball to release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
body_path:
tag_name: ${{ steps.version.outputs.version }}
files: |
q2pro-mingw-x86_64.zip
q2pro-msvc-x64.zip
q2pro-lin-arm64.zip
q2pro-lin-gcc-x86_64.zip
q2pro-lin-clang-x86_64.zip
q2pro-darwin-x86_64.zip
q2pro-darwin-arm64.zip