From f903bc0754288f95bd09a35c7379e5190bfc4630 Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 17 Nov 2023 18:44:20 +0100 Subject: [PATCH] Utilize Debian Registry for .deb bundle instead of Generic --- .forgejo/workflows/build+release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 75b860d..c39ee57 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -78,6 +78,10 @@ jobs: name: linux-amd64-debian path: artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.deb if-no-files-found: error + - + name: Storing Debian Version for Upload Job + id: store_deb_ver + run: echo $VERSION_CODENAME >> $GITHUB_OUTPUT - name: Uploading Linux AppImage Artifact uses: actions/upload-artifact@v3 @@ -85,6 +89,8 @@ jobs: name: linux-amd64-appimage path: artifacts/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage if-no-files-found: error + outputs: + debian_version: ${{ steps.store_deb_ver.outputs.VERSION_CODENAME }} upload-release: needs: [build-linux] @@ -119,10 +125,10 @@ jobs: 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 }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/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_version }}/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 }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/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_version }}/main/upload echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \ --upload-file release/comicinfo-editor-v2-${{ github.ref_name }}-amd64.AppImage \