diff --git a/.github/workflows/release-action.yml b/.github/workflows/release-action.yml index bdb849b..c3b72b0 100644 --- a/.github/workflows/release-action.yml +++ b/.github/workflows/release-action.yml @@ -15,11 +15,11 @@ jobs: - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v3 with: - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.GPG_PASSPHRASE }} + gpg-private-key: "${{ secrets.GPG_PRIVATE_KEY }}" + passphrase: "${{ secrets.GPG_PASSPHRASE }}" - name: "Archive zram-config" run: | - export tag="${GITHUB_REF/refs\/tags\//}" + export tag="${{ github.ref_name }}" sudo apt-get install lzip git archive --format=tar --prefix=zram-config-${tag}/ ${tag} -o zram-config-${tag}.tar lzip -9 --keep --verbose --verbose zram-config-${tag}.tar @@ -27,9 +27,11 @@ jobs: gpg --verify zram-config-${tag}.tar.lz.asc zram-config-${tag}.tar.lz unset tag shell: bash - - uses: "marvinpinto/action-automatic-releases@v1.1.1" + - uses: "marvinpinto/action-automatic-releases@v1.2.1" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" + title: "${{ github.ref_name }}" + automatic_release_tag: "${{ github.ref_name }}" prerelease: false files: | zram-config-*.tar.lz