Skip to content

Commit

Permalink
Fix deploy condition on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Feb 15, 2023
1 parent 0c245f9 commit 4529fe0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
runs-on: ubuntu-latest
needs: tests

if: ${{ github.ref == 'ref/head/prod' || github.ref == 'ref/head/master' }}
if: ${{ github.ref == 'refs/heads/prod' || github.ref == 'refs/heads/master' }}

# Fake ternary, see https://github.com/actions/runner/issues/409#issuecomment-752775072
environment: ${{ ( github.ref == 'ref/head/prod' && 'prod' ) || 'test' }}
environment: ${{ ( github.ref == 'refs/heads/prod' && 'prod' ) || 'test' }}

steps:
- uses: actions/checkout@v3
Expand All @@ -56,7 +56,6 @@ jobs:
- name: Install dependencies
run: |
set -eux
pipx install awscli
npm install -g [email protected] bower@^1.8.12
npm install
bower install
Expand All @@ -77,7 +76,7 @@ jobs:
- name: Deploy
run: |
awscli s3 sync \
aws s3 sync \
./dist \
s3://${{ vars.DEPLOY_S3_BUCKET_NAME }} \
--region ${{ vars.DEPLOY_S3_REGION }} \
Expand Down

0 comments on commit 4529fe0

Please sign in to comment.