mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
## 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>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Website Build
|
|
|
|
on:
|
|
push:
|
|
# For now, run on all commits to main
|
|
branches: [ main ]
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
branches: [ main ]
|
|
merge_group:
|
|
|
|
jobs:
|
|
rsync:
|
|
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: 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/*
|
|
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
|