From 8282bb09261003da554584028fb13b0051579d9a Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 14 Sep 2024 21:32:36 +0300 Subject: [PATCH] add github release CI step --- .github/workflows/workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 1252f93..98b489d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -94,3 +94,27 @@ jobs: tar -xzf bunny-upload.tar.gz echo "${{ secrets.BUNNY_CONFIG }}" > bunny-config.yaml ./bunny-upload -c bunny-config.yaml + + github-release: + name: Github Release + needs: build + if: ${{ startsWith(github.ref, 'refs/tags/') }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: dist + path: dist/ + - name: Prepare release + run: | + TAG=$(git describe --tags --abbrev=0 || echo "latest") + mv dist synapse-admin-$TAG + tar chvzf synapse-admin-$TAG.tar.gz synapse-admin-$TAG + - uses: softprops/action-gh-release@v2 + with: + files: synapse-admin-$TAG.tar.gz + generate_release_notes: true + make_latest: "true" + draft: false + prerelease: false