diff --git a/.github/workflows/build_cli.yaml b/.github/workflows/build_cli.yaml index f894bb02b..994eb6a18 100644 --- a/.github/workflows/build_cli.yaml +++ b/.github/workflows/build_cli.yaml @@ -53,7 +53,7 @@ jobs: with: images: emqx/mqttx-cli flavor: | - latest=true + latest=${{ !github.event.release.prerelease }} tags: | type=ref,event=tag @@ -78,7 +78,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} publish_npm: - if: github.event_name == 'release' + if: github.event_name == 'release' && !github.event.release.prerelease runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/deploy_web.yaml b/.github/workflows/deploy_web.yaml index 73aebc082..7891f8edf 100644 --- a/.github/workflows/deploy_web.yaml +++ b/.github/workflows/deploy_web.yaml @@ -31,7 +31,7 @@ jobs: yarn && yarn build - name: upload dist - if: github.event_name != 'pull_request' + if: github.event_name == 'release' && !github.event.release.prerelease run: | cd web wget http://gosspublic.alicdn.com/ossutil/1.7.8/ossutil64 @@ -66,7 +66,7 @@ jobs: with: images: emqx/mqttx-web flavor: | - latest=true + latest=${{ !github.event.release.prerelease }} tags: | type=ref,event=tag