File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments