Release artifacts not downloadable (Not found)

I do create a build of an open source project with github actions. This action should run if something is getting pushed to the devlop branch. It should create a “latest build” ready to download

The action does create the release at the end and does upload all the assets to the release. If I try to download them I do get a not found in the browser. As seen here. I tried to upload the artifacts to a release created by hand here which results in the same error.

The workflow is working just fine the files are listed and if I create a “draft” release the files are downloadable as well. As soon as I switch this to a non draft release the files result in a “not found” error

Since this problem alswo occures if I create the release by hand I think something else is wrong.

I did try different actions for creating the release and uploading the artifacts but it’s always the same. I do use actions like this on other projects without any issue.

Any idea what could be wrong?
I got a strong feeling that it’s something related to the tag created with the release.

Since I could only add two links as a new member if you want to take a look at the workflow look here

And a link to the workflow as it runs

I think I already resolved the issue instead of using the tag which is getting created containing the /refs/heads/develop-{number} part I do create a tag named last-unstable-{number} which seems to fix the issue.

Working example

       - name: Replace part of tag
         run: echo "custom_tag=latest-unstable" >> $GITHUB_ENV
       - name: Create last unstable Release
         uses: softprops/action-gh-release@v1
         with:
           name: Latest unstable
           body: This is the latest unstable build version, feel free to test it out. Most of the time only the windows build got tested!
           tag_name: ${{ env.custom_tag }}-${{ GITHUB.RUN_NUMBER }}
           draft: false
           prerelease: true
           target_commitish: develop
           files: releases/**.zip
         env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  

Broken previous one

       - name: Create last unstable Release
         uses: softprops/action-gh-release@v1
         with:
           name: Latest unstable
           body: This is the latest unstable build version, feel free to test it out. Most of the time only the windows build got tested!
           tag_name: ${{ github.ref }}-${{ GITHUB.RUN_NUMBER }}
           draft: false
           prerelease: true
           files: releases/**.zip