Skip to content

Release assets not appearing #25347

Answered by weide-zhou
andymantell asked this question in Actions
Discussion options

You must be logged in to vote

Hi @andymantell,

Glad to see you in Github Community Forum!
To add assets to an existing release, please use ‘edit’ instead of ‘create’ for command ‘hub release’.
Option ‘create’ will create a GitHub release for the specified TAG name. If git tag TAG does not exist, it will be created at TARGET (default: current branch).
Please fix code as below:

      - name: Attach binaries to release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          set -x
          assets=()
          for asset in ./bin/*; do
            assets+=("-a" "$asset")
          done
          githubref=${{ github.ref }}   # get the github.ref value
          hub release edit "${assets[…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants