Utilize Debian Registry for .deb bundle instead of Generic
Some checks failed
Run Tests on Code / run-tests (push) Successful in 20s
Build and Release Binary File / run-tests (push) Failing after 9s
Build and Release Binary File / build-linux (push) Failing after 10m30s
Build and Release Binary File / upload-release (push) Has been skipped

This commit is contained in:
Neshura 2023-11-17 18:44:20 +01:00
parent 71ed745449
commit f903bc0754
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -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 \