added ci back in #22
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"] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
environment: deploy | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: '^1.17.0' | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: Install | |
run: make install | |
- name: Write Backend Config File | |
uses: DamianReeves/[email protected] | |
with: | |
path: fns/config.yml | |
contents: | | |
mailTo: ${{ secrets.SNS_EMAIL }} | |
certArn: ${{ secrets.CERT_ARN }} | |
nonceKey: "${{ secrets.NONCE_KEY }}" | |
- name: Deploy Backend | |
run: make deploy-fns | |
- name: Deploy Frontend | |
run: make deploy-site |