Skip to content

Commit 354959c

Browse files
committed
🔧 chore: Update CI
1 parent 5537c2f commit 354959c

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,34 @@ permissions:
1010
pull-requests: write
1111

1212
jobs:
13+
ci:
14+
name: CI Init
15+
runs-on: [ self-hosted, Linux ]
16+
outputs:
17+
action: ${{ steps.init.outputs.action }}
18+
steps:
19+
- id: init
20+
uses: localazy/release/init@v2
21+
1322
prepare:
14-
name: Prepare Release
15-
if: github.event.head.ref != 'release' && !contains(github.event.commits[0].message, '🚀 release:')
23+
name: Prepare Release PR
24+
needs: ci
25+
if: needs.ci.outputs.action == 'prepare'
1626
runs-on: [ self-hosted, Linux ]
1727
steps:
18-
- name: Prepare release branch and PR
19-
uses: localazy/release@v1
28+
- uses: localazy/release/prepare@v2
2029
with:
21-
action: prepare
2230
app-id: ${{ secrets.AUTH_APP_ID }}
2331
app-key: ${{ secrets.AUTH_APP_KEY }}
2432

25-
release:
26-
name: Release
27-
if: github.event.head.ref == 'release' || contains(github.event.commits[0].message, '🚀 release:')
33+
publish:
34+
name: Publish Release
35+
needs: ci
36+
if: needs.ci.outputs.action == 'publish'
2837
runs-on: [ self-hosted, Linux ]
2938
steps:
30-
- name: Release new version
31-
uses: localazy/release@v1
39+
- uses: localazy/release/publish@v2
3240
with:
33-
action: release
3441
app-id: ${{ secrets.AUTH_APP_ID }}
3542
app-key: ${{ secrets.AUTH_APP_KEY }}
3643
major-bump: true

0 commit comments

Comments
 (0)