From 2a24ac1ec16baf92db6683f257eb780d7eb6be7a Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 10:03:06 +0000 Subject: [PATCH] Potential Fix Artifact Uploads --- .forgejo/workflows/build+release.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 2b829ba..5e658c8 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -45,28 +45,29 @@ jobs: - name: Downloading All Build Artifacts uses: actions/download-artifact@v3 + with: + name: bookworm-bot-linux-amd64 - name: Debug Workflow run: | ls -lap ${{steps.download.outputs.download-path}} ls -lap ./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 ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \ + --upload-file ${{steps.download.outputs.download-path}}/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 ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \ + --upload-file ${{steps.download.outputs.download-path}}/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 - # uses: actions/forgejo-release@v1 - # with: - # direction: upload - # url: https://forgejo.neshweb.net - # release-dir: bookworm-bot-linux-amd64/ - # token: ${{ secrets.FORGEJO_TOKEN }} - # tag: ${{ github.ref_name }} + - + name: Release New Version + uses: actions/forgejo-release@v1 + with: + direction: upload + url: https://forgejo.neshweb.net + release-dir: ${{steps.download.outputs.download-path}} + token: ${{ secrets.FORGEJO_TOKEN }} + tag: ${{ github.ref_name }}