Skip to content

updates

updates #31

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [ main ]
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 install
- name: Typescript
run: npx tsc
#- name: Transform imports
# run: node ./node_modules/gulp/bin/gulp.js
- name: Copy js & json
run: |
npx copyfiles --verbose "node_modules/**/*.js" 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/**/*.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/[email protected]
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.