diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index eac7059..aab4d52 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -33,25 +33,32 @@ jobs: uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 with: arguments: build - - name: Rename tar to Generic for upload - run: mv build/distributions/*.tar build/distributions/countmein.tar - continue-on-error: true + - name: Glob match tar + uses: tj-actions/glob@v7 + id: tar + with: + files: build/distributions/*.tar - name: Upload tar to Release uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: build/distributions/*.tar + asset_path: ${{ steps.tar.outputs.paths }} asset_name: countmein-${{ github.event.release.tag_name }}.tar asset_content_type: application/x-tar continue-on-error: true + - name: Glob match zip + uses: tj-actions/glob@v7 + id: zip + with: + files: build/distributions/*.zip - name: Upload zip to Release uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.PAT }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: build/distributions/*.zip + asset_path: ${{ steps.zip.outputs.paths }} asset_name: countmein-${{ github.event.release.tag_name }}.zip asset_content_type: application/zip \ No newline at end of file