File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ changelog :
2+ categories :
3+ - title : 🎉 New features
4+ labels :
5+ - Feature
6+ - title : ⭐ Enhancements
7+ labels :
8+ - Enhancement
9+ - title : 🐞 Bug fixes
10+ labels :
11+ - Bug
12+ - title : 📝 Documentation
13+ labels :
14+ - Documentation
15+ - title : Other changes
16+ labels :
17+ - " *"
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ # Manual trigger
5+ workflow_dispatch :
6+
7+ permissions :
8+ actions : write
9+ contents : write
10+
11+ jobs :
12+
13+ build :
14+ name : Release
15+ runs-on : macos-latest
16+
17+ steps :
18+
19+ - name : Checkout
20+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
22+ - name : Get ORLib version
23+ id : orlib_version
24+ run : |
25+ echo "version=$(xcodebuild -project ORLib.xcodeproj -scheme ORLib -destination generic/platform=iOS -showBuildSettings | grep MARKETING_VERSION | tr -d 'MARKETING_VERSION =')" >> $GITHUB_OUTPUT
26+
27+ # When the 'github.token' is used events are not generated to prevent users from accidentally creating recursive workflow runs.
28+ # See: https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
29+ - name : Create release
30+ run : |
31+ git tag $ORLIB_VERSION
32+ git push origin tag $ORLIB_VERSION
33+ gh release create $ORLIB_VERSION --generate-notes
34+ env :
35+ GH_TOKEN : ${{ github.token }}
36+ ORLIB_VERSION : ${{ steps.orlib_version.outputs.version }}
You can’t perform that action at this time.
0 commit comments