Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rockavoldy authored Jul 25, 2023
1 parent 761c0e1 commit 9c98218
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Build and release
on:
push:
branches: [ "main" ]
# TODO: need to create unit test, and run the test when do PR to branches main
# pull_request:
# branches: [ "main" ]


jobs:
build:
Expand Down Expand Up @@ -121,9 +117,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.outputs.bump_tag }} && ${{ needs.build.outputs.old_pre_tag }}
steps:
- name: Delete old prerelease tag with v0.x.x
if: (needs.build.outputs.old_pre_tag == needs.build.outputs.bump_tag) && (needs.build.outputs.bump_tag != 'NULL')
if: ${{ needs.build.outputs.old_pre_tag == needs.build.outputs.bump_tag }} && (needs.build.outputs.bump_tag != 'NULL')
uses: dev-drprasad/[email protected]
with:
delete_release: true
Expand All @@ -145,4 +142,4 @@ jobs:
prerelease: env.PRERELEASE
artifacts: "${{ github.workspace }}/publish/*.zip"
tag: "${{ needs.build.outputs.bump_tag }}"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9c98218

Please sign in to comment.