add github release CI step

This commit is contained in:
Aine 2024-09-14 21:32:36 +03:00
parent 264d2ff59d
commit 8282bb0926
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -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