diff --git a/.github/workflows/build-java-lib.yml b/.github/workflows/build-java-lib.yml index fa1b3ad..8f354ac 100644 --- a/.github/workflows/build-java-lib.yml +++ b/.github/workflows/build-java-lib.yml @@ -3,6 +3,8 @@ name: Build on: push: branches: [ "master" ] + tags: + - "mecab-java-msvc-*" pull_request: branches: [ "master" ] jobs: @@ -44,4 +46,9 @@ jobs: - name: Upload a Build Artifact uses: actions/upload-artifact@v3 with: - path: mecab-java-msvc-${{ matrix.distribution }}-${{ matrix.java }}-${{ matrix.arch }}.zip \ No newline at end of file + path: mecab-java-msvc-${{ matrix.distribution }}-${{ matrix.java }}-${{ matrix.arch }}.zip + - name: Release Artifact + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: mecab-java-msvc-${{ matrix.distribution }}-${{ matrix.java }}-${{ matrix.arch }}.zip \ No newline at end of file