diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86979fa..0889eb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,10 +101,10 @@ jobs: - run: npm run test publish: - if: contains(' + if: (contains(' refs/heads/main refs/heads/develop - ', github.ref) && github.repository == 'fumiX/fuBlog' + ', github.ref) || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'fumiX/fuBlog' needs: [test, lint] runs-on: ubuntu-latest permissions: @@ -144,10 +144,10 @@ jobs: labels: ${{ steps.meta.outputs.labels }} publish-db-image: - if: contains(' + if: (contains(' refs/heads/main refs/heads/develop - ', github.ref) && github.repository == 'fumiX/fuBlog' + ', github.ref) || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'fumiX/fuBlog' needs: [test, lint] runs-on: ubuntu-latest permissions: