Skip to content

update

update #57

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run build
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
OUTPUT=$(python3 ./get_branches.py)
npx gh-pages -b "gh-pages${OUTPUT}" -d build -m "Auto-generated commit" -u "amatilda <kpk@z-wave.me>"
- name: Build z-uno-compiler
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run build_zuno
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
OUTPUT=$(python3 ./get_branches.py)
npx gh-pages -b "gh-pages-z-uno-compiler" -d build -m "Auto-generated commit" -u "amatilda <kpk@z-wave.me>"
npx gh-pages -b "gh-pages-z-uno-compiler-beta" -d build -m "Auto-generated commit" -u "amatilda <kpk@z-wave.me>"