From 511108b81fabbd32821add788e97ff6decd21cbe Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Thu, 13 Mar 2025 15:43:59 -0700 Subject: [PATCH] ci: authenticate with forgejo --- .github/workflows/build-nightly.yml | 4 ++++ run.sh | 14 +++++++------- scripts/build-nightly.sh | 1 - 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/build-nightly.yml index 74d04ec..7abf1f6 100644 --- a/.github/workflows/build-nightly.yml +++ b/.github/workflows/build-nightly.yml @@ -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 diff --git a/run.sh b/run.sh index c370c77..8210179 100755 --- a/run.sh +++ b/run.sh @@ -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" diff --git a/scripts/build-nightly.sh b/scripts/build-nightly.sh index 06ec40d..44aedb1 100755 --- a/scripts/build-nightly.sh +++ b/scripts/build-nightly.sh @@ -51,7 +51,6 @@ cmake .. -GNinja \ -DBUNDLE_SPEEX=ON \ -DCMAKE_BUILD_TYPE=Release -#ninja clean ninja ninja install popd >/dev/null