Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…o add_voucher_used-info
  • Loading branch information
itsjainrishi committed Sep 4, 2023
2 parents e40e6de + f4647f3 commit 40c01de
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/test-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
outputs:
base_URL: ${{ steps.set-domain.outputs.domain }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"

- uses: rlespinasse/github-slug-action@3.1.0
- uses: rlespinasse/github-slug-action@v4

- name: Start deployment
uses: bobheadxi/deployments@v0.4.2
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
Expand All @@ -27,7 +27,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Start storybook deployment
uses: bobheadxi/deployments@v0.4.2
uses: bobheadxi/deployments@v1
id: storybook-deployment
with:
step: start
Expand All @@ -36,7 +36,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
echo "domain=${{ env.GITHUB_HEAD_REF_SLUG_URL }}.dashboard.saleor.rocks" >> $GITHUB_OUTPUT
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -100,24 +100,26 @@ jobs:
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_TEST_CF_DIST_ID }} --paths "/${{ steps.set-domain.outputs.domain }}/*"

- name: Update deployment status
uses: bobheadxi/deployments@v0.4.2
uses: bobheadxi/deployments@v1
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
env_url: https://${{ steps.set-domain.outputs.domain }}/
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env: ${{ env.GITHUB_HEAD_REF_SLUG_URL }}

- name: Update storybook deployment status
uses: bobheadxi/deployments@v0.4.2
uses: bobheadxi/deployments@v1
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
env_url: https://${{ steps.set-domain.outputs.domain }}/storybook/index.html
deployment_id: ${{ steps.storybook-deployment.outputs.deployment_id }}
env: storybook ${{ env.GITHUB_HEAD_REF_SLUG_URL }}

prepare-tests:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -228,7 +230,7 @@ jobs:
node-version-file: ".nvmrc"

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand Down

0 comments on commit 40c01de

Please sign in to comment.