diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1080f59..7ea9bc1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: push: branches: - main + tags: + - v* pull_request: ~ jobs: @@ -20,3 +22,11 @@ jobs: - run: flutter pub get - run: dart run.dart setup - run: dart run.dart build + - if: startsWith(github.ref, 'refs/tags/v') + uses: ncipollo/release-action@v1 + with: + artifacts: "build/windows/runner/whispercppapp-*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref }} + name: ${{ github.ref }} + body: ${{ github.event.head_commit.message }}