Skip to content

update demo

update demo #335

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm ci
- name: Typescript
run: npm run build
- name: Copy js & json
run: |
npx copyfiles --verbose "node_modules/**/*.js" build/default
npx copyfiles --verbose "node_modules/**/*.mjs" build/default
npx copyfiles --verbose "node_modules/**/*.json" build/default
npx copyfiles --verbose "dist/**/*.js" build/default
npx copyfiles --verbose "dist/**/*.json" build/default
npx copyfiles --verbose "*.html" build/default
- name: Copy css and rest
run: |
npx copyfiles --verbose "node_modules/**/*.css" build/default
npx copyfiles --verbose "node_modules/**/*.json" build/default
npx copyfiles --verbose "node_modules/**/*.png" build/default
npx copyfiles --verbose "node_modules/**/*.svg" build/default
npx copyfiles --verbose "node_modules/**/*.gif" build/default
npx copyfiles --verbose "node_modules/**/*.jpg" build/default
npx copyfiles --verbose "node_modules/**/*.woff" build/default
npx copyfiles --verbose "node_modules/**/*.woff2" build/default
npx copyfiles --verbose "node_modules/**/*.ttf" build/default
npx copyfiles --soft --verbose "node_modules/**/*.js" build/default
npx copyfiles --verbose "assets/**/*.png" build/default
npx copyfiles --verbose "assets/**/*.svg" build/default
npx copyfiles --verbose "assets/**/*.css" build/default
npx copyfiles --verbose "*.json" build/default
#- name: Setup upterm session (for debugging, see https://github.com/marketplace/actions/debugging-with-ssh)
# uses: lhotari/action-upterm@v1
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build/default # The folder the action should deploy.