fix path #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 'main' | |
- 'develop' | |
paths: | |
- 'services/wcm/**' | |
- '.github/workflows/services-wcm.yaml' | |
name: Services/WCM | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
deploy: | |
defaults: | |
run: | |
working-directory: ./services/wcm | |
runs-on: ubuntu-latest | |
name: Publishes this SST stack | |
steps: | |
- uses: actions/checkout@v3 | |
- id: pnpm-install | |
uses: mattwyskiel/sst-node-pnpm-setup@v3 | |
- run: pnpm i | |
shell: bash | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::662292074719:role/whiskey-app-role | |
role-session-name: sst-pnpm-workflows-sample | |
- run: pnpm sst deploy --stage dev | |
shell: bash | |
if: startsWith(github.ref_name, 'develop') | |
- run: pnpm sst deploy --stage prod | |
shell: bash | |
if: startsWith(github.ref_name, 'main') |