Skip to content

add other closed registration page #27

add other closed registration page

add other closed registration page #27

name: Deploy frontend
# Controls when the action will run. Triggers the workflow on a push event in
# the master branch, when there's a chage in frontend/
on:
push:
branches:
- main
paths:
- 'frontend/*'
# Specify working directory to use for the whole job
defaults:
run:
working-directory: frontend
# Job instructions
jobs:
deploy:
name: Deploy frontend
runs-on: ubuntu-latest
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
steps:
# Check out the repository
- uses: actions/checkout@v2
# Install node
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
# Install serverless
- name: Install Serverless Framework
run: npm install -g [email protected]
# Install all NPM packages
- name: Install NPM dependencies
run: npm ci
# Finally, deploy the service to AWS
- name: Deploy frontend in stage
run: sls deploy -s stage