Skip to content

Commit

Permalink
tag main branch with staging tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ylembachar committed Oct 24, 2024
1 parent c2681e5 commit b358c01
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ jobs:
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
# Tag the main branch with the latest tag from staging
- name: Tag the main branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout main
git pull origin main
git tag "$LATEST_TAG"
git push origin "$LATEST_TAG"
# Setup SSH for deployment
- name: Setup SSH
run: |
Expand Down

0 comments on commit b358c01

Please sign in to comment.