diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f6778af7..950185c37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ name: passbook-release on: - release: - types: - - created + release jobs: # Build diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 0b5d6444e..a65546dfb 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -31,6 +31,13 @@ jobs: helm dependency update helm/ helm package helm/ mv passbook-*.tgz passbook-chart.tgz + - name: Extract verison number + id: get_version + uses: actions/github-script@0.2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + return context.payload.ref.replace(/\/refs\/tags\/version\//, ''); - name: Create Release id: create_release uses: actions/create-release@v1.0.0 @@ -38,10 +45,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + release_name: Release ${{ steps.get_version.outputs.result }} draft: false prerelease: false - - name: Create Release from Tag + - name: Upload packaged Helm Chart id: upload-release-asset uses: actions/upload-release-asset@v1.0.1 env: