From 7a5198bf5688377cd76b03b9cedbef53fe3e7203 Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 10:36:36 +0000 Subject: [PATCH] Fix Artifact Upload File Path --- .forgejo/workflows/build+release.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index b53df4a..032cee7 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -47,23 +47,20 @@ jobs: - name: Downloading All Build Artifacts uses: actions/download-artifact@v3 - with: - path: ./artifacts - name: Debug Workflow run: | - ls -lap ${{steps.download.outputs.download-path}} - ls -lap ./artifacts - ls -lap ./artifacts/bookworm-bot-linux-amd64 + ls -lap ${{steps.download.outputs.download-path}}/bookworm-bot-linux-amd64 + ls -lap ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 pwd - name: Upload Artifacts As Generic Packages run: | echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ - --upload-file ${{steps.download.outputs.download-path}}/bookworm-bot-linux-amd64 \ + --upload-file ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \ https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/bookworm-bot-linux-amd64' curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ - --upload-file ${{steps.download.outputs.download-path}}/bookworm-bot-linux-amd64 \ + --upload-file ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \ https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/bookworm-bot-linux-amd64 - name: Release New Version