add other closed registration page #27
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: 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 |