diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97e809e..7d73d25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -56,7 +56,6 @@ jobs: - name: Install dependencies run: | set -eux - pipx install awscli npm install -g grunt-cli@1.3.2 bower@^1.8.12 npm install bower install @@ -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 }} \