diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9e9404..df19492 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: # Create a GitHub release - name: Create Release id: create_release - if: matrix.os == 'linux' + if: github.event_name == 'push' uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -76,6 +76,7 @@ jobs: # Upload release asset for Linux - name: Upload Release Asset Linux + if: github.event_name == 'push' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -87,6 +88,7 @@ jobs: # Upload release asset for Darwin - name: Upload Release Asset Darwin + if: github.event_name == 'push' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -98,6 +100,7 @@ jobs: # Upload release asset for Windows - name: Upload Release Asset Windows + if: github.event_name == 'push' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}