From 989693140b18e946f0968695b6d33dbd9b05c189 Mon Sep 17 00:00:00 2001 From: orhun Date: Tue, 10 Aug 2021 00:00:14 +0300 Subject: [PATCH] fix(cd): switch to `upload-release-action` for uploading releases --- .github/workflows/cd.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 019ed15..c5a0672 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -44,13 +44,13 @@ jobs: sha512sum rustypaste-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.tar.gz \ > rustypaste-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.tar.gz.sha512 - name: Upload the release - uses: softprops/action-gh-release@v1 + uses: svenstaro/upload-release-action@v2 with: - files: | - rustypaste-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.tar.gz - rustypaste-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.tar.gz.sha512 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: rustypaste-${{ env.RELEASE_VERSION }}-${{ matrix.TARGET }}.tar.gz* + file_glob: true + overwrite: true + tag: ${{ github.ref }} publish-crates-io: name: Publish on crates.io