File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 - name : Checkout
1212 uses : actions/checkout@v2.3.1
1313 with :
14- token : ${{secrets.SUBMOD_PAT}}
15- submodules : recursive
1614 fetch-depth : 0 # needed to retrieve most recent tag
1715 - name : Set up Python 3.8
1816 uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 1+ name : Release Candidate
2+ on :
3+ pull_request :
4+ types : [closed]
5+ branches :
6+ - ' develop'
7+
8+ jobs :
9+ # Bump the SDK version
10+ version_bump :
11+ if : github.event.pull_request.merged == true
12+ name : Bump Version and Create Release
13+ runs-on : ubuntu-latest
14+ outputs :
15+ version_id : ${{ steps.tag_version.outputs.new_tag }}
16+ upload_url : ${{ steps.create_release.outputs.upload_url }}
17+ steps :
18+ - uses : actions/checkout@v2
19+ with :
20+ fetch-depth : 0
21+ - name : Bump version and push tag
22+ id : tag_version
23+ uses : mathieudutour/github-tag-action@v5.5
24+ with :
25+ # Don't commit tag
26+ # this will be done as part of the release
27+ dry_run : true
28+ github_token : ${{ secrets.GITHUB_TOKEN }}
29+ release_branches : main,develop
30+
31+ - name : Calculate RC number
32+ id : vars
33+ run : echo "::set-output name=rc_num::$(git rev-list --merges --count origin/develop...origin/main)"
34+
35+ - name : Create a GitHub release
36+ id : create_release
37+ uses : actions/create-release@v1
38+ env :
39+ # Use NITRIC_BOT_TOKEN here to
40+ # trigger release 'published' workflows
41+ GITHUB_TOKEN : ${{ secrets.NITRIC_BOT_TOKEN }}
42+ with :
43+ prerelease : true
44+ tag_name : ${{ steps.tag_version.outputs.new_tag }}-rc.${{ steps.vars.outputs.rc_num }}
45+ release_name : Release ${{ steps.tag_version.outputs.new_tag }}-rc.${{ steps.vars.outputs.rc_num }}
46+ body : ${{ steps.tag_version.outputs.changelog }}
Original file line number Diff line number Diff line change 1+ name : Production Release
2+ on :
3+ pull_request :
4+ types : [closed]
5+ branches :
6+ - ' main'
7+ jobs :
8+ # Bump the SDK version
9+ version_bump :
10+ if : github.event.pull_request.merged == true
11+ name : Bump Version and Create Release
12+ runs-on : ubuntu-latest
13+ outputs :
14+ version_id : ${{ steps.tag_version.outputs.new_tag }}
15+ upload_url : ${{ steps.create_release.outputs.upload_url }}
16+ steps :
17+ - uses : actions/checkout@v2
18+ with :
19+ fetch-depth : 0
20+ - name : Bump version and push tag
21+ id : tag_version
22+ uses : mathieudutour/github-tag-action@v5.5
23+ with :
24+ # Use GITHUB_TOKEN here to prevent further workflows
25+ # generated on 'tag' action
26+ github_token : ${{ secrets.GITHUB_TOKEN }}
27+ - name : Create a GitHub release
28+ id : create_release
29+ uses : actions/create-release@v1
30+ env :
31+ # Use NITRIC_BOT_TOKEN here to
32+ # trigger release 'published' workflows
33+ GITHUB_TOKEN : ${{ secrets.NITRIC_BOT_TOKEN }}
34+ with :
35+ tag_name : ${{ steps.tag_version.outputs.new_tag }}
36+ release_name : Release ${{ steps.tag_version.outputs.new_tag }}
37+ body : ${{ steps.tag_version.outputs.changelog }}
You can’t perform that action at this time.
0 commit comments