Merge pull request #4 from tylerthardy/icc-hardmodes #79
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
name: Deploy API & UI | |
permissions: | |
id-token: write # required to use OIDC authentication | |
contents: read # required to checkout the code from the repo | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: configure aws credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::592808278931:role/GithubDeployRole | |
role-duration-seconds: 900 # the ttl of the session, in seconds. | |
aws-region: us-east-1 # use your region here. | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm test | |
- run: npm run deploy:cd | |
env: | |
WARCRAFT_LOGS_CLIENT_ID: '${{ secrets.WARCRAFT_LOGS_CLIENT_ID }}' | |
WARCRAFT_LOGS_CLIENT_SECRET: '${{ secrets.WARCRAFT_LOGS_CLIENT_SECRET }}' | |
CALLBACK_URLS: '${{ secrets.CALLBACK_URLS }}' | |
GOOGLE_CLIENT_ID: '${{ secrets.GOOGLE_CLIENT_ID }}' | |
GOOGLE_CLIENT_SECRET: '${{ secrets.GOOGLE_CLIENT_SECRET }}' |