-
Notifications
You must be signed in to change notification settings - Fork 200
54 lines (46 loc) · 1.38 KB
/
pre-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
name: Pre-release
on:
push:
branches: [main, ci/overhaul-github-workflows]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
build:
uses: ./.github/workflows/build.yaml
pre-release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: glazewm-*-${{ github.sha }}
# path: artifacts
- name: Download artifacts (win-x64)
uses: actions/download-artifact@v4
with:
name: glazewm-win-x64-${{ github.sha }}
path: artifacts/win-x64
- name: Download artifacts (win-x86)
uses: actions/download-artifact@v4
with:
name: glazewm-win-x86-${{ github.sha }}
path: artifacts/win-x86
- name: Semantic release
uses: glzr-io/actions/semantic-release@main
with:
is_prerelease: true
repository_url: "github.com:glzr-io/glazewm.git"
gh_publish: true
gh_token: ${{ secrets.GITHUB_TOKEN }}
gh_assets: |
[
{ "path": "artifacts/win-x64", "name": "GlazeWM_x64_${nextRelease.gitTag}" },
{ "path": "artifacts/win-x86", "name": "GlazeWM_x86_${nextRelease.gitTag}" },
]