Skip to content

Commit

Permalink
add github release CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Sep 14, 2024
1 parent 264d2ff commit 8282bb0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8282bb0

Please sign in to comment.