Skip to content

Commit

Permalink
ci: update workflow to publish to prod whent tag created
Browse files Browse the repository at this point in the history
  • Loading branch information
kajabi-bot committed Apr 23, 2024
1 parent c27af42 commit 8130348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ jobs:
# Envs based on the current branch
- name: Branch Env
id: branch_env
shell: bash
run: |
echo "Running on branch "
if [ "${{ github.ref }}" == "refs/heads/develop" ]; then
echo "postfix=staging" >> $GITHUB_ENV
elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
if [[ "${{ github.ref }}" == *"refs/tags"* ]]; then
echo "postfix=production" >> $GITHUB_ENV
else
echo "postfix=staging" >> $GITHUB_ENV
Expand Down

0 comments on commit 8130348

Please sign in to comment.