Skip to content

Commit

Permalink
CI: build for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Jan 14, 2024
1 parent 8a0dea5 commit 775c060
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Build and Release
on:
release:
types: [ published ]
push:
tags:
- 120*
- pre-20*

env:
PYTHON_VERSION: '3.9'
Expand Down Expand Up @@ -112,14 +116,14 @@ jobs:
uses: svenstaro/[email protected]
if: ${{ matrix.build == 'macos' }}
with:
asset_name: MDCx-${{ matrix.build }}-${{ matrix.arch }}.app.zip
asset_name: MDCx-$tag-${{ matrix.build }}-${{ matrix.arch }}.app.zip
file: MDCx.app.zip
prerelease: true
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre-') }}

- name: Create Release - Windows
uses: svenstaro/[email protected]
if: ${{ matrix.build == 'windows' }}
with:
asset_name: MDCx-${{ matrix.build }}-${{ matrix.arch }}.exe
asset_name: MDCx-$tag-${{ matrix.build }}-${{ matrix.arch }}.exe
file: dist/MDCx.exe
prerelease: true
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre-') }}

0 comments on commit 775c060

Please sign in to comment.