Fix CI for website (#1877)

## Description

We forgot to go to the correct directory prior to running ``npm ci``, so
now I'm adding it.

PROOF: see the passing website test

## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_
- [x] If this PR changes behavior or adds a feature, user documentation
is updated
- [x] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [x] If this PR touches configuration, this is backwards compatible
with settings back to v2024.3.1
- [x] If this PR addresses a bug, a regression test for it is added

---------

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
This commit is contained in:
Sam Freund
2025-04-10 23:38:23 -05:00
committed by GitHub
parent 163dbe58e4
commit 1af3dab37a
5 changed files with 28 additions and 5 deletions

View File

@@ -4,9 +4,11 @@ on:
push:
# For now, run on all commits to main
branches: [ main ]
# and also all tags starting with v
tags:
- 'v*'
pull_request:
branches: [ main ]
merge_group:
jobs:
rsync:
@@ -17,12 +19,29 @@ jobs:
uses: actions/setup-node@v4
- name: Install packages
run: npm ci
working-directory: website
- name: Build project
run: npm run build
working-directory: website
- uses: up9cloud/action-rsync@v1.4
if: github.ref == 'refs/heads/main'
env:
HOST: ${{ secrets.WEBMASTER_SSH_HOST }}
USER: ${{ secrets.WEBMASTER_SSH_USERNAME }}
KEY: ${{secrets.WEBMASTER_SSH_KEY}}
SOURCE: /website/dist/*
SOURCE: website/dist/*
TARGET: /var/www/html/photonvision-website
format-check:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install packages
run: npm ci
working-directory: website
- name: Build project
run: npx prettier -c .
working-directory: website