chore: upgrade to wing 0.50 #41
Workflow file for this run
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: [pull_request] | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
pull-requests: write # This is required for commenting on PRs | |
env: | |
AWS_REGION: 'us-east-1' | |
TF_BACKEND_BUCKET: 'wing-voting-app-tfstate' | |
TF_BACKEND_BUCKET_REGION: 'us-east-1' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Build website | |
run: | | |
cd website | |
npm install | |
npm run build | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
role-session-name: gh-actions-winglang | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Terraform Plan | |
uses: winglang/wing-github-action/actions/[email protected] | |
with: | |
entry: main.w | |
target: 'tf-aws' | |
github-token: ${{ secrets.GITHUB_TOKEN }} |