-
Notifications
You must be signed in to change notification settings - Fork 48
80 lines (70 loc) · 1.87 KB
/
deploy.yml
File metadata and controls
80 lines (70 loc) · 1.87 KB
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
name: Release and deploy
on:
workflow_dispatch:
inputs:
version:
description: 'Version number for the app'
required: true
default: '0.0.0'
updateRelease:
description: 'Update existing release'
required: true
default: 'false'
dryRun:
description: 'Dry run'
required: true
type: boolean
default: true
permissions:
contents: write
jobs:
format:
name: Format
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/check-formatting
build-test:
name: Build and Test
runs-on: windows-2025
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/build-and-test
package:
name: Package ${{ matrix.arch }}
runs-on: windows-2025
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v5
- uses: ./.github/actions/create-release-artifacts
with:
version: ${{ inputs.version }}
arch: ${{ matrix.arch }}
artifact-name: desktopclock-${{ matrix.arch }}
deploy:
name: Create GitHub release
needs:
- format
- build-test
- package
runs-on: windows-2025
steps:
- uses: actions/download-artifact@v8
with:
pattern: desktopclock-*
path: release-artifacts
merge-multiple: true
- name: Create GitHub release
if: ${{ !inputs.dryRun }}
uses: ncipollo/release-action@v1.21.0
with:
tag: "v${{ inputs.version }}"
artifacts: "release-artifacts/*.zip,release-artifacts/*.msi"
generateReleaseNotes: true
prerelease: ${{ contains(inputs.version, 'preview') }}
allowUpdates: ${{ inputs.updateRelease }}
removeArtifacts: true
omitBodyDuringUpdate: true