-
Notifications
You must be signed in to change notification settings - Fork 186
61 lines (54 loc) · 1.55 KB
/
release.yaml
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
name: Release
on:
workflow_dispatch:
inputs:
draft-release:
type: boolean
default: true
description: Whether to publish the release as a draft.
permissions:
contents: write
issues: write
pull-requests: write
concurrency:
group: release
jobs:
package:
uses: ./.github/workflows/package.yaml
secrets: inherit
release:
needs: [package]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download installers
uses: actions/download-artifact@v4
with:
name: installers
path: out/
- name: Semantic release
uses: glzr-io/actions/semantic-release@main
with:
gh-publish: true
gh-draft-release: ${{ inputs.draft-release }}
gh-token: ${{ github.token }}
gh-assets: |
[
{
"path": "out/installer-universal",
"name": "glazewm-${nextRelease.gitTag}-opt0",
"label": "${nextRelease.gitTag} Installer (recommended)"
},
{
"path": "out/installer-x64",
"name": "glazewm-${nextRelease.gitTag}-opt1-x64",
"label": "${nextRelease.gitTag} Installer (standalone x64)"
},
{
"path": "out/installer-arm64",
"name": "glazewm-${nextRelease.gitTag}-opt1-arm64",
"label": "${nextRelease.gitTag} Installer (standalone arm64)"
}
]