diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c08373d..3d522a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,6 @@ on: push: - tags: - - 'v*.*.*' + jobs: build: runs-on: windows-2019 @@ -21,5 +20,7 @@ jobs: run: .\build.bat ${{ env.NODEJS_VERSION }} - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - files: .\node-shared-v${{ env.NODEJS_VERSION }}-x64.zip + fail_on_unmatched_files: true + files: node-shared-v${{ env.NODEJS_VERSION }}-x64.zip