-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 963 Bytes
/
release.yml
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
name: Release CI
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
prepare:
name: Prepare Release
if: github.event.head.ref != 'release' && !contains(github.event.commits[0].message, '🚀 release:')
runs-on: [ self-hosted, Linux ]
steps:
- name: Prepare release branch and PR
uses: localazy/release@v1
with:
action: prepare
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
release:
name: Release
if: github.event.head.ref == 'release' || contains(github.event.commits[0].message, '🚀 release:')
runs-on: [ self-hosted, Linux ]
steps:
- name: Release new version
uses: localazy/release@v1
with:
action: release
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
major-bump: true
major-bump-tag-prefix: v