Add login redirect (#1256) #256
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
# The Purpose of this workflow file is to enable us to | |
# automatically deploy the app based on the latest | |
# commit on the staging repo. | |
name: Staging Deployment | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy_web: | |
if: ${{ github.repository == 'CATcher-org/CATcher-staging' }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Deploy on Staging Website | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run deploy:staging -- --repo=https://x-access-token:[email protected]/CATcher-org/CATcher-staging.git |