Merge pull request #539 from mynaparrot/renovate/react-redux-8.x #424
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
with: | |
node-version: "18.x" | |
- name: Build project | |
run: | | |
npm install | |
npm 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.4 | |
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/** |