-
-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (51 loc) · 1.43 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
# Create a new release
name: Release
on:
# Build & deploy for tag events matching v*, i.e. v1.0.0, v20.15.10
push:
tags:
- "v*"
concurrency:
group: ci-release-${{ github.ref }}-1
cancel-in-progress: true
jobs:
call-tests:
uses: ./.github/workflows/tests.yml
call-build-linux:
needs: call-tests
uses: ./.github/workflows/build-linux.yml
with:
pre-release: false
secrets: inherit
call-build-windows:
needs: call-tests
uses: ./.github/workflows/build-windows.yml
with:
pre-release: false
secrets: inherit
call-build-android:
needs: call-tests
uses: ./.github/workflows/build-android.yml
with:
pre-release: false
secrets: inherit
release:
name: "Release"
needs: [call-build-linux, call-build-windows, call-build-android]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Create Draft Release & Upload artifacts
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: |
${{ github.workspace }}/artifacts/linux-artifacts/*
${{ github.workspace }}/artifacts/windows-artifacts/*
${{ github.workspace }}/artifacts/android-artifacts/*