File tree 3 files changed +71
-3481
lines changed
3 files changed +71
-3481
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- push :
5
- branches :
6
- - main
7
4
workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ required : true
8
+ description : ' Release version'
8
9
9
10
jobs :
10
11
release_pr :
@@ -33,23 +34,20 @@ jobs:
33
34
run : |
34
35
git add -f build/ Sources/
35
36
36
- - name : Get version
37
- env :
38
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
- run : |
40
- npx auto version
41
- echo "VERSION=$(npx auto version)" >> $GITHUB_ENV
42
-
43
37
- name : Commit build files
44
38
uses : stefanzweifel/git-auto-commit-action@v4
45
39
with :
46
- commit_message : " Release build ${{ env.VERSION }} [ci release]"
40
+ commit_message : " Release build ${{ github.event.inputs.version }} [ci release]"
47
41
commit_options : ' --allow-empty'
48
42
skip_checkout : true
49
43
branch : " releases"
50
44
51
- - name : Ship
45
+ - name : Create Release
46
+ uses : softprops/action-gh-release@v1
52
47
env :
53
48
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
- run : |
55
- npx auto release
49
+ with :
50
+ draft : false
51
+ prerelease : false
52
+ tag_name : ${{ env.VERSION }}
53
+ target_commitish : " releases"
You can’t perform that action at this time.
0 commit comments