diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8e4b4658..f81f9e85 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,7 @@ jobs: name: Publish prerelease if: | !contains(github.event.head_commit.message, '[skip publish]') - && (github.ref == 'refs/heads/master') + && contains(github.ref, '-dev.') runs-on: ubuntu-latest needs: [ test_and_sync ] steps: @@ -52,15 +52,14 @@ jobs: if: steps.changed_packages.outputs.changed_packages != '0' run: npm run build - - name: Create a GH release from tag - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GH_TOKEN }}" - prerelease: true - + # - name: Create a GH release from tag + # uses: "marvinpinto/action-automatic-releases@latest" + # with: + # repo_token: "${{ secrets.GH_TOKEN }}" + # prerelease: true - name: Release dev version for testing - if: env.RELEASE_TAG == 'next' && steps.changed_packages.outputs.changed_packages != '0' + if: steps.changed_packages.outputs.changed_packages != '0' run: | git config --global user.name 'Apify Release Bot' git config --global user.email 'noreply@apify.com' @@ -79,7 +78,7 @@ jobs: name: Publish latest if: | !contains(github.event.head_commit.message, '[skip publish]') - && (github.ref == 'refs/heads/stable') + && !contains(github.ref, '-dev.') runs-on: ubuntu-latest needs: [ test_and_sync ] steps: