fix compile #11
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: 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/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. |