diff --git a/.ci-forgejo-apt.sh b/.ci-forgejo-apt.sh new file mode 100755 index 0000000..d474e28 --- /dev/null +++ b/.ci-forgejo-apt.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +for deb in "$@" ; do + curl -H "Authorization: token $FORGEJO_KEY" --upload-file $deb $FORGEJO_SITE/api/packages/$FORGEJO_OWNER/debian/pool/$DEBIAN_DIST/$DEBIAN_COMPONENT/upload +done diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 19d15e5..e34bc8a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -306,3 +306,16 @@ pipeline: skip_verify: true when: event: [ tag ] + + publish-apt-repo: + image: *ci_verify_image + group: upload + environment: + FORGEJO_SITE: https://code.forgejo.org + FORGEJO_OWNER: crystal + DEBIAN_DIST: any + DEBIAN_COMPONENT: forgejo + secrets: [ cfo_api_key ] + commands: + - export FORGEJO_KEY=$CFO_API_KEY + - ./.ci-forgejo-apt.sh "*.deb"