Skip to content

Build and Publish Site #278

Build and Publish Site

Build and Publish Site #278

Workflow file for this run

name: Build and Publish Site
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Build project
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
run: npm run build
- name: Set SSH key and known hosts
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_SECRET_KEY }}
name: id_rsa
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Deploy to server
env:
SSH_USER: ${{ SSH_USER }}

Check failure on line 41 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Site

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 41, Col: 21): Unrecognized named-value: 'SSH_USER'. Located at position 1 within expression: SSH_USER .github/workflows/publish.yml (Line: 42, Col: 21): Unrecognized named-value: 'SSH_HOST'. Located at position 1 within expression: SSH_HOST
SSH_HOST: ${{ SSH_HOST }}
SSH_REMOTE_PATH: ${{ SSH_REMOTE_PATH }}
run: |
rsync -avz --delete --quiet ./public/ $SSH_USER@$SSH_HOST:$SSH_REMOTE_PATH
- name: Clean up
run: |
rm -rf ./public/
rm ~/.ssh/id_rsa