forked from Vocaluxe/Vocaluxe
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.24 KB
/
build-nightly.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
name: Nightly build
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build-windows:
name: Build Windows
uses: ./.github/workflows/dotnet-desktop.yml
publish:
runs-on: ubuntu-latest
needs: build-windows
name: Publish release
steps:
- name: Create Release
if: ${{ github.event_name == 'push'}}
uses: ncipollo/release-action@v1.14.0
with:
name: Latest Nightly build
tag: Nightly
prerelease: true
allowUpdates: true
artifacts: Vocaluxe_Nightly_x64
attach-artifacts:
name: Attach artifacts
needs: [build-windows, publish]
strategy:
matrix:
build:
- label: "Windows_x86"
url: ${{needs.build-windows.outputs.x86}}
- label: "Windows_x64"
url: ${{needs.build-windows.outputs.x64}}
runs-on: ubuntu-latest
steps:
- name: Download artifact
run: "wget --header='Authorization: token ${GITHUB_TOKEN}' ${{ matrix.build.url }} -O 'Vocaluxe_Nightly_${{ matrix.build.label}}.zip'"
- name: Attach to release
uses: softprops/action-gh-release@v2
with:
files: Vocaluxe_Nightly_${{ matrix.build.label}}.zip
tag: Nightly