-
-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (44 loc) · 1.2 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
# 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
release:
name: "Release"
needs: [call-build-linux, call-build-windows]
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/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: |
${{ github.workspace }}/artifacts/linux-artifacts/*
${{ github.workspace }}/artifacts/windows-artifacts/*