From 82efecded48c7583a4316adde16448f7884fe25e Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 08:59:41 +0000 Subject: [PATCH] Debug Release Workflow --- .forgejo/workflows/build+release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index d3bb6bc..e0920a4 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -34,7 +34,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: bookworm-bot-linux-amd64 - path: /workspace/Neshura/ascendance-of-a-bookworm-bot/target/release/ascendance-of-a-bookworm-bot + path: /workspace/${{ secrets.FORGEJO_USERNAME }}/${{ github.event.repository.name }}/target/release/ascendance-of-a-bookworm-bot if-no-files-found: error upload-release: @@ -52,17 +52,16 @@ jobs: pwd - name: Upload Artifacts As Generic Packages - run: | - curl --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ - --upload-file bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \ - https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/ascendance-of-a-bookworm/${{ github.ref_name }}/bookworm-bot-linux-amd64 - + run: > + curl --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} + --upload-file 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 uses: actions/forgejo-release@v1 with: direction: upload url: https://forgejo.neshweb.net - release-dir: ./bookworm-bot-linux-amd64/ + release-dir: bookworm-bot-linux-amd64/ token: ${{ secrets.FORGEJO_TOKEN }} tag: ${{ github.ref_name }}