From 347438ab102a5a9cf081f410a3ceffeea80d4695 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sat, 28 Oct 2023 14:27:13 +0530 Subject: [PATCH] fix: upload bin to dl.mcaptcha.org --- .github/workflows/linux.yml | 13 ++++++------- scripts/publish.sh | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 3eaa253..79057ac 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -77,10 +77,9 @@ jobs: if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'mCaptcha/cache' run: make docker - # TODO: key expired, regenerate and re-enable - # - name: publish bins - # if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'mCaptcha/cache' - # run: ./scripts/publish.sh publish master latest $DUMBSERVE_PASSWORD - # env: - # DUMBSERVE_PASSWORD: ${{ secrets.DUMBSERVE_PASSWORD }} - # GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} + - name: publish bins + if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'mCaptcha/cache' + run: ./scripts/publish.sh publish master latest $DUMBSERVE_PASSWORD + env: + DUMBSERVE_PASSWORD: ${{ secrets.DUMBSERVE_PASSWORD }} + GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} diff --git a/scripts/publish.sh b/scripts/publish.sh index 4331f75..d0d17d7 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -26,7 +26,7 @@ DUMBSERVE_PASSWORD=$4 DUMBSERVE_HOST="https://$DUMBSERVE_USERNAME:$DUMBSERVE_PASSWORD@dl.mcaptcha.org" NAME=cache -KEY=0CBABF3084E84E867A76709750BE39D10ECE01FB +KEY=73DAC973A9ADBB9ADCB5CDC4595A08135BA9FF73 TMP_DIR=$(mktemp -d) FILENAME="$NAME-$2-linux-amd64"