Run alexellis/upload-assets@0.3.0 Error: Not Found
Beim Benutzen der GitHub Action alexellis/upload-assets
(https://github.com/alexellis/upload-assets) bekam ich folgende Fehlermeldung
Run alexellis/upload-assets@0.3.0 Error: Not Found
Man kann das Problem lösen indem man vorher ein Release erstellt. In meinem Testfall habe ich die GitHub Action actions/create-release@latest
(https://github.com/actions/create-release) verwendet. Die gesamte yml-Datei sah in meinem Testfall dann so aus:
name: Upload assets example on: push: tags: - v* workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Run something run: | echo "$(date)" > release_file - name: Create release id: create_release uses: actions/create-release@latest env: GITHUB_TOKEN: ${{ secrets.UPLOAD_TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} draft: false prerelease: false - name: Upload release files uses: alexellis/upload-assets@0.3.0 env: GITHUB_TOKEN: ${{ secrets.UPLOAD_TOKEN }} with: asset_paths: '["./release_file"]'