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 \