Skip to content

Commit

Permalink
fix: publish on tag GA
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Nov 16, 2022
1 parent 0c4d05a commit 46c92e9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit 46c92e9

Please sign in to comment.