Skip to content

ci: add env variables from github #4

ci: add env variables from github

ci: add env variables from github #4

Workflow file for this run

name: Deploy application
on:
push:
branches:
- main
env:
PUCLIC_BASE_URL: ${{ vars.PUCLIC_BASE_URL }}
PUCLIC_MY_TWITTER_URL: ${{ vars.PUCLIC_MY_TWITTER_URL }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- 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: Install modules
run: yarn
- name: Build application
run: yarn build
- name: Deploy to S3
run: aws s3 sync ./dist/ s3://${{ secrets.BUCKET_ID }}