Skip to content

Commit

Permalink
udpated workflow to tag after successful build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky.gummadi committed Jul 1, 2024
1 parent 50641e6 commit 0416c59
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:
- name: Run Linter
run: npm run lint

- name: Tag the release
id: tag_version
if: github.ref == 'refs/heads/dev'
- name: Determine the version
id: determine_version
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand Down Expand Up @@ -65,10 +64,6 @@ jobs:
fi
fi
# Create and push the new tag
git tag $NEW_TAG
git push origin $NEW_TAG
# Set the new tag as an environment variable
echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
Expand All @@ -82,6 +77,16 @@ jobs:
env:
NEW_TAG: ${{ env.NEW_TAG }}

- name: Tag the release
if: github.ref == 'refs/heads/dev'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Create and push the new tag
git tag ${{ env.NEW_TAG }}
git push origin ${{ env.NEW_TAG }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

1 comment on commit 0416c59

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment successful with release 1.9.0!

Please sign in to comment.