Skip to content

Merge remote-tracking branch 'upstream/master' #255

Merge remote-tracking branch 'upstream/master'

Merge remote-tracking branch 'upstream/master' #255

# 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:$GITHUB_TOKEN@github.com/CATcher-org/CATcher-staging.git