fix: change gpt model naming (#362) #95
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 | |
name: 🚀 Deploy to staging | |
concurrency: deploy_staging | |
permissions: | |
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage | |
contents: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2 | |
actions: read # this is required for Nx https://github.com/nrwl/nx-set-shas#permissions-in-v2 | |
env: | |
CI: true | |
AWS_REGION: eu-west-2 | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build_and_test_core: | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
AWS_REGION: eu-west-2 | |
defaults: | |
run: | |
working-directory: services/core | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ env.AWS_REGION }} | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN_STAGING }} | |
- name: Install pnpm | |
run: npm i -g pnpm | |
- name: 🚀 Deploy core | |
run: npm i && npm run deploy-staging |