ci: authenticate with forgejo

This commit is contained in:
Jared Allard 2025-03-13 15:43:59 -07:00
parent afaa33dabf
commit 511108b81f
Signed by: jaredallard
SSH key fingerprint: SHA256:wyRyyv28jBYw8Yp/oABNPUYvbGd6hyZj23XVXEm5G/U
3 changed files with 11 additions and 8 deletions

View file

@ -12,5 +12,9 @@ jobs:
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://git.rgst.io/rgst-io/mise-action@v2
- name: Authenticate with Forgejo
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: fj --host git.rgst.io auth add-key forgejo-actions "$FORGEJO_TOKEN"
- name: Build Nightly
run: ./run.sh

14
run.sh
View file

@ -26,11 +26,11 @@ rmdir builds/builds
sudo chown "$(id -u):$(id -g)" "./builds/"*
# # upload the artifacts
# appimage_path=$(basename "$(find "./builds" -maxdepth 1 -name "*.AppImage" -print | head -n 1)")
# release_name="${appimage_path//citron-/}"
# release_name="${release_name//.AppImage/}"
# upload the artifacts
appimage_path=$(basename "$(find "./builds" -maxdepth 1 -name "*.AppImage" -print | head -n 1)")
release_name="${appimage_path//citron-/}"
release_name="${release_name//.AppImage/}"
# echo "Create release $release_name"
# fj --host git.rgst.io release --repo jaredallard/citron-nightly create \
# --create-tag --attach ./builds/"$appimage_path" "$release_name"
echo "Create release $release_name"
fj --host git.rgst.io release --repo jaredallard/citron-nightly create \
--create-tag --attach ./builds/"$appimage_path" "$release_name"

View file

@ -51,7 +51,6 @@ cmake .. -GNinja \
-DBUNDLE_SPEEX=ON \
-DCMAKE_BUILD_TYPE=Release
#ninja clean
ninja
ninja install
popd >/dev/null