Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

automatic release artifacts not found #635

Open
ahmedmoselhi opened this issue Apr 3, 2023 · 2 comments
Open

automatic release artifacts not found #635

ahmedmoselhi opened this issue Apr 3, 2023 · 2 comments

Comments

@ahmedmoselhi
Copy link

ahmedmoselhi commented Apr 3, 2023

I'm trying to run the following workflow file:
https://github.com/ahmedmoselhi/pcsx2/blob/master/.github/workflows/release_pipeline.yml

but after I run the workflow I got the following error:
Error: /home/runner/work/pcsx2/pcsx2/ci-artifacts/* doesn't match any files

the job to create release and upload files:

  create_release:
    needs:
      - upload_artifacts
    name: "Create Release"
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ${{ github.WORKSPACE }}
    steps:
      - uses: actions/checkout@v3

      - name: Prepare Artifact Folder
        run: mkdir -p ${{ github.WORKSPACE }}/ci-artifacts

      - uses: actions/download-artifact@v3
        name: Download all Artifacts
        with:
          path: ${{ github.WORKSPACE }}/ci-artifacts
          
      - uses: "marvinpinto/action-automatic-releases@latest"
        name: Release
        with:
          repo_token: "${{ secrets.GITHUB_TOKEN }}"
          automatic_release_tag: "latest"
          prerelease: true
          title: "Development Build"
          files: |
            ${{ github.WORKSPACE }}/ci-artifacts/*
@flwyd
Copy link

flwyd commented May 23, 2023

I was able to resolve this issue by setting name: on both the upload-artifact and download-artifact actions. Without that, I think the artifacts may end up in unexpected subdirectories.

@Erudition
Copy link

I solved it using commands like ls in the output and running the action. Figured out it was going to a subdirectory I didn't expect.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants