Skip to content

Commit

Permalink
ci: fix deploy ci to target production
Browse files Browse the repository at this point in the history
  • Loading branch information
vvatelot committed Dec 2, 2023
1 parent c6f9fb8 commit d38a0cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- name: 🚀 Get Environment
id: get_environment
run: |
if [[ ${{ github.ref }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "target-env=production" > $GITHUB_OUTPUT
if [[ ${{ github.ref_name }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "target-env=production" >> $GITHUB_OUTPUT
else
echo "target-env=preproduction" > $GITHUB_OUTPUT
echo "target-env=preproduction" >> $GITHUB_OUTPUT
fi
deploy:
Expand Down

0 comments on commit d38a0cb

Please sign in to comment.