Skip to content

Remove unauth GitHub api (#1221) #243

Remove unauth GitHub api (#1221)

Remove unauth GitHub api (#1221) #243

# 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