diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b8adc2..e063ae2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: branches: - "*" tags: - - '[0-9]+.[0-9]+.[0-9]+' + - '*' pull_request: branches: - "*" @@ -62,9 +62,8 @@ jobs: deploy: name: Deploy release runs-on: ubuntu-latest - permissions: write-all needs: [ build ] - if: github.event_name == 'push' && (github.ref == 'refs/heads/main') + if: startsWith(github.event.ref, 'refs/tags/') steps: - name: Check out files uses: actions/checkout@v3.5.3 @@ -78,7 +77,6 @@ jobs: uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: 'latest' prerelease: false draft: true files: |