File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' VERSION'
9+
10+ jobs :
11+ release :
12+ name : Release
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ defaults :
17+ run :
18+ working-directory : ./src/github.com/${{ github.repository }}
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22+ with :
23+ path : ./src/github.com/${{ github.repository }}
24+ - name : Create release
25+ id : create_release
26+ env :
27+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ run : |
29+ VERSION=$(cat VERSION | tr -d '\n')
30+ echo "VERSION=$VERSION" >> $GITHUB_ENV
31+ echo "Creating release $VERSION"
32+ gh release create "$VERSION" -R ${{ github.repository }} --title "$VERSION" --generate-notes
Original file line number Diff line number Diff line change 1+ v0.0.5
You can’t perform that action at this time.
0 commit comments