Update Signup.vue #14
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: Code Build & Deploy - Prod | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
job: | |
description: 'Job to run.' | |
required: true | |
default: 'deploy' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Upgrade npm | |
run: npm install -g [email protected] | |
- name: Installing project dependencies | |
run: npm install | |
- name: Setup Env | |
run: cp .env.example .env | |
- name: Building the project | |
run: VUE_APP_CURRENT_SHA=$(git rev-parse HEAD) VUE_APP_API_URL=https://enigma-api.webledger.in npm run build | |
- 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: ap-south-1 | |
- name: Deploy static site to S3 bucket | |
run: aws s3 sync ./dist/ s3://enigma.webledger.in --delete |