Skip to content

Commit

Permalink
create release from tag in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanilov committed Nov 6, 2022
1 parent 23d1de8 commit 68f8c5b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,21 @@ jobs:
with:
name: '${{ env.INSTALL_PATH }}'
path: ${{ env.INSTALL_PATH }}/*
- name: release archive
if: startsWith(github.ref, 'refs/tags/')
run: |
ZIP_PATH=${{ github.event.repository.name }}-${{ github.ref_name }}-${{ matrix.qt-arch }}
ZIP_FILE=$ZIP_PATH.zip
echo "ZIP_FILE=$ZIP_FILE" >>$GITHUB_ENV
mv ${{ env.INSTALL_PATH }} $ZIP_PATH
7z a $ZIP_FILE $ZIP_PATH
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
draft: false
prerelease: false
files: |
${{ env.ZIP_FILE }}

0 comments on commit 68f8c5b

Please sign in to comment.