File tree Expand file tree Collapse file tree 4 files changed +114
-0
lines changed Expand file tree Collapse file tree 4 files changed +114
-0
lines changed Original file line number Diff line number Diff line change 1+ # Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+ name-template : ' v$NEXT_PATCH_VERSION 🌈'
3+ tag-template : ' v$NEXT_PATCH_VERSION'
4+ version-template : $MAJOR.$MINOR.$PATCH
5+ # Emoji reference: https://gitmoji.carloscuesta.me/
6+ categories :
7+ - title : ' 🚀 Features'
8+ labels :
9+ - ' feature'
10+ - ' enhancement'
11+ - ' kind/feature'
12+ - title : ' 🐛 Bug Fixes'
13+ labels :
14+ - ' fix'
15+ - ' bugfix'
16+ - ' bug'
17+ - ' regression'
18+ - ' kind/bug'
19+ - title : 📝 Documentation updates
20+ labels :
21+ - documentation
22+ - ' kind/doc'
23+ - title : 👻 Maintenance
24+ labels :
25+ - chore
26+ - dependencies
27+ - ' kind/chore'
28+ - ' kind/dep'
29+ - title : 🚦 Tests
30+ labels :
31+ - test
32+ - tests
33+ exclude-labels :
34+ - reverted
35+ - no-changelog
36+ - skip-changelog
37+ - invalid
38+ autolabeler :
39+ - label : ' documentation'
40+ title :
41+ - ' /docs:/i'
42+ - label : ' chore'
43+ title :
44+ - ' /chore:/i'
45+ - label : ' bug'
46+ title :
47+ - ' /fix:/i'
48+ - label : ' enhancement'
49+ title :
50+ - ' /feat:/i'
51+ change-template : ' * $TITLE (#$NUMBER) @$AUTHOR'
52+ template : |
53+ ## What’s Changed
54+
55+ $CHANGES
56+
57+ ## Thanks to
58+ $CONTRIBUTORS
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ UpdateReleaseDraft :
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - uses : release-drafter/release-drafter@v5
13+ env :
14+ GITHUB_TOKEN : ${{ secrets.GH_PUBLISH_SECRETS }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ branches :
8+ - master
9+
10+ env :
11+ REGISTRY : ghcr.io
12+ REGISTRY_DOCKERHUB : docker.io
13+ IMAGE_NAME : ${{ github.repository }}
14+
15+ jobs :
16+ goreleaser :
17+ runs-on : ubuntu-20.04
18+ if : github.ref != 'refs/heads/master'
19+ steps :
20+ - name : Checkout
21+ 22+ with :
23+ fetch-tags : true
24+ fetch-depth : 0
25+ - name : Set output
26+ id : vars
27+ run : echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT
28+ - name : Set up Go
29+ uses : actions/setup-go@v3
30+ with :
31+ go-version : 1.22.x
32+ - name : Image Registry Login
33+ run : |
34+ docker login --username linuxsuren --password ${{secrets.DOCKER_HUB_PUBLISH_SECRETS}}
35+ docker login ${{ env.REGISTRY }}/linuxsuren --username linuxsuren --password ${{secrets.GH_PUBLISH_SECRETS}}
36+ - name : Upload via oras
37+ run : |
38+ export TAG=${{ steps.vars.outputs.tag }}
39+ tar czvf atest-data-swagger.tar.gz data
40+ oras push ${{ env.REGISTRY_DOCKERHUB }}/linuxsuren/atest-ext-data-swagger:${TAG#v} atest-data-swagger.tar.gz
41+ oras push ${{ env.REGISTRY }}/linuxsuren/atest-ext-data-swagger:${TAG#v} atest-data-swagger.tar.gz
Original file line number Diff line number Diff line change 11.idea /
2+ * .gz
You can’t perform that action at this time.
0 commit comments