diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index ca88919..d20988f 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -74,10 +74,17 @@ jobs: run: | make dist + - name: Get release name + if: startsWith(github.ref, 'refs/tags/') + shell: bash + run: | + echo "release_name=$(git tag -l --format "%(refname:strip=2): %(contents:lines=1)" ${{ github.ref_name }})" >> $GITHUB_ENV + - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + name: env.release_name prerelease: "${{ contains(github.ref, '-') }}" # alpha-releases should be 1.3.0-alpha.x full releases should be 1.3.0 draft: false files: |