Potential Fix Artifact Uploads
Some checks failed
Run Tests on Code / run-tests (push) Successful in 6s
Build and Release Binary File / run-tests (push) Successful in 2s
Build and Release Binary File / build (push) Successful in 1m21s
Build and Release Binary File / upload-release (push) Failing after 10s

This commit is contained in:
Neshura 2023-11-17 10:03:06 +00:00
parent ec565523b3
commit 2a24ac1ec1

View file

@ -45,28 +45,29 @@ jobs:
- -
name: Downloading All Build Artifacts name: Downloading All Build Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with:
name: bookworm-bot-linux-amd64
- -
name: Debug Workflow name: Debug Workflow
run: | run: |
ls -lap ${{steps.download.outputs.download-path}} ls -lap ${{steps.download.outputs.download-path}}
ls -lap ./bookworm-bot-linux-amd64 ls -lap ./bookworm-bot-linux-amd64
ls -lap ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64
pwd pwd
- -
name: Upload Artifacts As Generic Packages name: Upload Artifacts As Generic Packages
run: | run: |
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ 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' 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 }} \ 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 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 name: Release New Version
# uses: actions/forgejo-release@v1 uses: actions/forgejo-release@v1
# with: with:
# direction: upload direction: upload
# url: https://forgejo.neshweb.net url: https://forgejo.neshweb.net
# release-dir: bookworm-bot-linux-amd64/ release-dir: ${{steps.download.outputs.download-path}}
# token: ${{ secrets.FORGEJO_TOKEN }} token: ${{ secrets.FORGEJO_TOKEN }}
# tag: ${{ github.ref_name }} tag: ${{ github.ref_name }}