xresloader / upload-to-github-release

MIT License
53 stars 12 forks source link

FIle to upload not found #44

Closed TheMaverickProgrammer closed 1 year ago

TheMaverickProgrammer commented 1 year ago

I don't know why but the uploader cannot find my zip which is clearly present in my worklog (attached). File path: D:\a\Client/Client/build/client-release.zip worklog.txt

I even hard-coded the path reported by my List step:

    - name: Upload To Github Release
      uses: xresloader/upload-to-github-release@v1.3.9
      with:
        # The files or file patterns to upload. You can upload multiple files by split them by semicolon. You can use the glob pattern to find the files.
        file: D:\a\Client/Client/build/client-release.zip
        overwrite: true
        # With tags: true, your Releases deployment will trigger if and only if the build is a tagged build.
        # tags: # optional
        # Only work on these branches(splited by semicolon), set to nothing to accept all branches.
        # branches: # optional
        # With verbose: true, be verbose.
        verbose: true
        # Set custom tag name.
        tag_name: v2.5
        # If try to update latest release.
        update_latest_release: true
        # Set release id to update.If release_id is set, this step will fail if we can not find it.
        # release_id: # optional, default is 

My full yaml is attached as well for your convenience: windows.yml.txt

TheMaverickProgrammer commented 1 year ago

Here's a screenshot of the error: image

owent commented 1 year ago

Could you run pwd and dir/ls in ${{ github.workspace }}/build and ${{ github.workspace }}/Client/build ? Or try to use / to replace \ ?

TheMaverickProgrammer commented 1 year ago

I have manually passed in absolute paths and tried fixing the slashes by hand. Nothing seemed to work. I attached the work log that shows the file exists. How will that different from pwd?

owent commented 1 year ago

This plugin use globby to find all files match the file patterns. According the document ,it only support forward-slashes, not backward-slashes. Could you please just use file: build/client-release.zip to upload this file? I will patch this PATH in next release.

TheMaverickProgrammer commented 1 year ago

image Hey sorry it took so long. It's a big project. But here's the image to show you.

TheMaverickProgrammer commented 1 year ago

This is not fixed in the newest version. For some reason it also flips the drive slash?

image