From c07b25c2e85398140a6eeb6fda3cd3180976dc89 Mon Sep 17 00:00:00 2001 From: Gareth Williams Date: Sat, 16 Nov 2024 11:52:39 +0000 Subject: [PATCH] fix: release workflow --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46bafcd..c47f17d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,7 +180,9 @@ jobs: if: "!contains(github.ref_name, 'beta')" shell: bash run: | + echo "$PWD" echo "{\"version\": \"$GITHUB_REF_NAME\", \"commit\": \"$GITHUB_SHA_SHORT\"}" > latest.json + cat latest.json - name: Get B2 client if: "!contains(github.ref_name, 'beta')" @@ -195,7 +197,7 @@ jobs: run: | ls -la release b2 authorize-account ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} > /dev/null 2>&1 - b2 sync --replace-newer --no-progress latest.json b2://${{ secrets.PUBLISH_BUCKET }}/bin/server-installer/ + b2 file upload --no-progress ${{ secrets.PUBLISH_BUCKET }} latest.json /bin/server-installer/ b2 sync --replace-newer --no-progress release b2://${{ secrets.PUBLISH_BUCKET }}/bin/server-installer/latest/ b2 sync --replace-newer --no-progress release b2://${{ secrets.PUBLISH_BUCKET }}/bin/server-installer/$GITHUB_REF_NAME/