forked from Vocaluxe/Vocaluxe
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.21 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
name: Nightly build
on:
push:
branches: [ "develop" ]
jobs:
prepare-build:
name: Prepare build
runs-on: ubuntu-latest
outputs:
version: ${{ steps.previous-tag.outputs.tag }}-g${{ steps.shorten-sha.outputs.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
sparse-checkout: |
README.md
- name: Get previous tag
id: previous-tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.0
- name: Shorten sha
id: shorten-sha
run: |
sha=$(echo ${{ github.sha }} | cut -c 1-7) >> $GITHUB_OUTPUT
build-windows:
name: Build Windows
needs: prepare-build
uses: ./.github/workflows/dotnet-desktop.yml
with:
version: ${{ needs.prepare-build.outputs.version }}
version-name: Nightly
publish:
name: Publish release
needs: [prepare-build, build-windows]
uses: ./.github/workflows/publish-release.yml
with:
release-name: Latest nightly build
version-name: Nightly
artifact-x86: ${{ needs.build-windows.outputs.x86 }}
artifact-x64: ${{ needs.build-windows.outputs.x64 }}