Skip to content

fix: create zip to test as well as #48

fix: create zip to test as well as

fix: create zip to test as well as #48

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: "lts/*"
- 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
mkdir -p tmp/client
rsync -ar LICENSE dist tmp/client/
cd tmp
zip -X -r client.zip client
cp -f client.zip client/dist/
- name: Upload by ftp
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.PNM_FTP_HOST }}
username: ${{ secrets.PNM_FTP_USER }}
password: ${{ secrets.PNM_FTP_PASSWORD }}
local-dir: "./tmp/client/dist/"
server-dir: "./design-v2/"
state-name: ".v2-sync-state.json"