Skip to content

Merge remote-tracking branch 'origin' into Design-2.0 #11

Merge remote-tracking branch 'origin' into Design-2.0

Merge remote-tracking branch 'origin' into Design-2.0 #11

name: Nightly build to test
on:
push:
branches:
- 'Design-2.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Check format
run: pnpm run format-check
- name: Build project
run: |
pnpm run build
timestamp=$(date +%s)
echo "dev-${timestamp}" > dist/version.txt
- name: Upload by ftp
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.PNM_FTP_HOST }}
username: ${{ secrets.PNM_FTP_USER }}
password: ${{ secrets.PNM_FTP_PASSWORD }}
local-dir: "./dist/"
server-dir: "./design-v2/"
state-name: ".v2-sync-state.json"