Skip to content

Use stable Actions v3 and proper timeout #1164

Use stable Actions v3 and proper timeout

Use stable Actions v3 and proper timeout #1164

Workflow file for this run

name: Continuous Deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
timeout-minutes: 10 # applies to the whole job
steps:
- name: Checkout main branch
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Clean npm cache
run: npm cache clean --force
- name: Install dependencies
run: npm ci --verbose
- name: Create env file
run: |
touch .env
echo NOTION_TOKEN=${{ secrets.NOTION_TOKEN }} >> .env
cat .env
- name: Copy Orienting Directory
run: rsync -a --delete orienting.sfpc.study/ /var/www/orienting.sfpc.study/html/