Skip to content

Merge pull request #821 from mynaparrot/release-please--branches--mai… #732

Merge pull request #821 from mynaparrot/release-please--branches--mai…

Merge pull request #821 from mynaparrot/release-please--branches--mai… #732

Workflow file for this run

name: Nightly build to test
on:
push:
branches:
- 'main'
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
mkdir -p tmp/client
rsync -ar LICENSE dist tmp/client/
cd tmp
zip -X -r client.zip client
- 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: "./tmp/"
state-name: ".client-sync-state.json"
exclude: |
**/client/**