diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index fd5ef96f..a2a04688 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,9 +1,6 @@ name: push on: push: - create: - tags: - - v* jobs: launcher: name: Launcher @@ -55,7 +52,7 @@ jobs: - name: Create release id: create_release uses: actions/create-release@v1 - if: github.event_name == 'create' + if: github.event.ref == 'refs/tags/*' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -65,13 +62,13 @@ jobs: prerelease: false - name: Pack release - if: github.event_name == 'create' + if: github.event.ref == 'refs/tags/*' run: | cd artifacts/ zip -r -9 ../Release.zip * - name: Upload release - if: github.event_name == 'create' + if: github.event.ref == 'refs/tags/*' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}