44 push :
55 branches :
66 - main
7+ tags :
8+ - " v*.*.*"
79
810jobs :
911 release :
1012 runs-on : ubuntu-latest
1113 steps :
1214 - name : Checkout
13- uses : actions/checkout@v2
15+ uses : actions/checkout@v3
1416 with :
1517 fetch-depth : 0
1618
@@ -28,35 +30,22 @@ jobs:
2830 changelog="${changelog//'%'/'%25'}"
2931 changelog="${changelog//$'\n'/'%0A'}"
3032 changelog="${changelog//$'\r'/'%0D'}"
31- echo "::set-output name= version:: $version"
32- echo "::set-output name= changelog:: $changelog"
33+ echo "version= $version" >> $GITHUB_OUTPUT
34+ echo "changelog= $changelog" >> $GITHUB_OUTPUT
3335
3436 - name : Publish to NCSA OpenSource
353738+ if : startsWith(github.ref, 'refs/tags/')
3639 with :
3740 username : ${{ secrets.HELM_USERNAME }}
3841 password : ${{ secrets.HELM_PASSWORD }}
3942 registry-url : " https://opensource.ncsa.illinois.edu/charts"
4043 chart-folder : " ."
4144 force : true
4245
43- - name : create release
44- uses : actions/create-release@v1
45- id : create_release
46- env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ - name : Release
47+ uses : softprops/action-gh-release@v1
48+ if : startsWith(github.ref, 'refs/tags/')
4849 with :
49- tag_name : ${{ steps.release_info.outputs.version }}
50- release_name : Release ${{ steps.release_info.outputs.version }}
50+ files : clowder-${{ steps.release_info.outputs.version }}.tgz
5151 body : ${{ steps.release_info.outputs.changelog }}
52-
53- - name : Upload Release Asset
54- id : upload-release-asset
55- uses : actions/upload-release-asset@v1
56- env :
57- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58- with :
59- upload_url : ${{ steps.create_release.outputs.upload_url }}
60- asset_path : ./clowder-${{ steps.release_info.outputs.version }}.tgz
61- asset_name : clowder-${{ steps.release_info.outputs.version }}.tgz
62- asset_content_type : application/zip
0 commit comments