Skip to content

Commit 87f150f

Browse files
author
Xeek
committed
chore: some clean-up and improvements for release-please.yml
1 parent 8d68193 commit 87f150f

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ permissions:
1313
env:
1414
APP_NAME: WindowTool
1515

16+
# Only one run per branch may execute at a time, and if a newer run starts we’ll
17+
# cancel the older one
18+
concurrency:
19+
group: release-${{ github.ref }}
20+
cancel-in-progress: true
21+
1622
jobs:
1723
release:
1824
runs-on: ubuntu-latest
@@ -29,34 +35,28 @@ jobs:
2935
with:
3036
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
3137

32-
build-x64:
33-
name: Build x64 Release
38+
build:
3439
needs: release
3540
if: ${{ needs.release.outputs.release_created }}
41+
strategy:
42+
matrix:
43+
platform: [x64, x86]
3644
uses: ./.github/workflows/build.yml
37-
secrets: inherit
3845
with:
39-
platform: x64
46+
platform: ${{ matrix.platform }}
4047
configuration: Release
41-
42-
build-x86:
43-
name: Build x86 Release
44-
needs: release
45-
if: ${{ needs.release.outputs.release_created }}
46-
uses: ./.github/workflows/build.yml
4748
secrets: inherit
48-
with:
49-
platform: x86
50-
configuration: Release
5149

5250
publish:
5351
name: Publish Release
5452
runs-on: ubuntu-latest
55-
needs: [release,build-x64,build-x86]
53+
needs: [release,build]
5654
if: ${{ needs.release.outputs.release_created }}
5755
steps:
5856
- name: Checkout code
5957
uses: actions/checkout@v4
58+
with:
59+
ref: ${{ needs.release.outputs.tag_name }}
6060

6161
- name: Download Artifacts
6262
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)