Skip to content

Commit 9ae99c7

Browse files
authored
Add autorelease workflow (#4946)
* add auto release process * add auto release process * add auto release process
1 parent 48ab710 commit 9ae99c7

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Realese process
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Test CI"]
6+
types:
7+
- completed
8+
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: 'Version number'
13+
required: true
14+
type: string
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
deploy:
22+
name: Publish
23+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v5
27+
- name: Prepare release
28+
run: |
29+
echo "Preparing release ${{ github.event.inputs.version }}"
30+
make release version=${{ github.event.inputs.version }}
31+
32+
- name: Commit prepare release changes
33+
run: |
34+
git config --local user.email "
35+
git config --local user.name "github-actions[bot]"
36+
git add .
37+
git commit -m "Release ${{ github.event.inputs.version }}"
38+
39+
# - name: Tag, push and create associated new release with auto generated notes
40+
# run: |
41+
# git tag ${{ github.event.inputs.version }}
42+
# git push origin HEAD --tags
43+
# gh release create ${{ github.event.inputs.version }} --title "Release ${{ github.event.inputs.version }}"
44+
# # env:
45+
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
#
47+
# #- name: Make release
48+
# uses: ncipollo/release-action@v1
49+
# with:
50+
# tag: ${{ github.event.inputs.version }}
51+
# name: Release ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)