Skip to content

Commit

Permalink
creating release for main branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
anjan-keysight committed May 5, 2022
1 parent e54e822 commit d1af4ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publishing Artifacts
if: steps.check_tag.outputs.exists == 'false'
if: steps.check_tag.outputs.exists == 'false' && steps.get_branch.outputs.branch == 'main'
run: |
sudo chmod u+x ./do.sh
sudo DOCKERHUB_KEY=${{ secrets.DOCKERHUB_KEY }} DOCKERHUB_REPO=${{ secrets.DOCKERHUB_REPO }} DOCKERHUB_USER=${{ secrets.DOCKERHUB_USER }} ./do.sh cicd_publish
- name: Create Release
if: steps.check_tag.outputs.exists == 'false'
if: steps.check_tag.outputs.exists == 'false' && steps.get_branch.outputs.branch == 'main'
uses: ncipollo/release-action@v1
with:
artifacts: "release/*"
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.88
0.1.89

0 comments on commit d1af4ca

Please sign in to comment.