Fix Wrong URL in Debian Package Upload
Some checks failed
Run Tests on Code / run-tests (push) Successful in 5s
Build and Release Binary File / run-tests (push) Successful in 9s
Build and Release Binary File / build-linux (push) Successful in 10m23s
Build and Release Binary File / upload-release (push) Failing after 44s

This commit is contained in:
Neshura 2023-11-17 20:16:11 +01:00
parent 6d66c5aa4a
commit b30ff9f804
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -119,23 +119,16 @@ jobs:
name: Rearrange Artifact Paths name: Rearrange Artifact Paths
run: | run: |
mkdir release mkdir release
find artifacts/ -type f -print0 | xargs -0 mv -t release find artifacts/ -type f -print0 | xargs -0 mv -v -t release
- -
name: Upload Artifacts As Generic Packages name: Upload 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 release/comicinfo-editor-v2-linux-amd64 \ --upload-file release/comicinfo-editor-v2-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64' https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-linux-amd64 \ --upload-file release/comicinfo-editor-v2-linux-amd64 \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64 https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-linux-amd64
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.example.com/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.store_deb_ver.outputs.debian_codename }}/main/upload'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.example.com/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.store_deb_ver.outputs.debian_codename }}/main/upload
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage \ --upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage \
@ -143,6 +136,15 @@ jobs:
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage \ --upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage
-
name: Upload Debian Package
run: |
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.store_deb_ver.outputs.debian_codename }}/main/upload'
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
--upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb \
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/debian/pool/${{ needs.store_deb_ver.outputs.debian_codename }}/main/upload
- -
name: Release New Version name: Release New Version
uses: actions/forgejo-release@v1 uses: actions/forgejo-release@v1