mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-21 15:25:22 +03:00
add github release CI step
This commit is contained in:
parent
264d2ff59d
commit
8282bb0926
1 changed files with 24 additions and 0 deletions
24
.github/workflows/workflow.yml
vendored
24
.github/workflows/workflow.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue