svenstaro / upload-release-action

Upload files to a GitHub release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action successful but now showing up under assets in release

nnofel opened this issue · comments

The action shows that it is finished successfully but the asset uploaded doesn't show under the Release

Does the log say anything?

Did the release already exist?

@svenstaro yes it did. In fact my workflow gets triggered on the create release event.

@svenstaro I am having this exact issue as well (same log). The relevant section in my file:

      - uses: svenstaro/upload-release-action@v2
        with:
          repo_token: ${{ secrets.COMPILE_TOKEN }}
          file: src/build/file
          tag: ${{ github.ref }}
          overwrite: true

Same issue on my end

      - name: Upload the release
        uses: svenstaro/upload-release-action@v2
        with:
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          tag: ${{ github.ref }}
          file: main.pdf
          overwrite: true
          asset_name: "${{needs.setup-envs.outputs.tag-name}}.pdf"
          release_name: "${{needs.setup-envs.outputs.tag-name}}"
          body: "${{ needs.setup-envs.outputs.release_body }}"