-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 2.19 KB
/
buildDeploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.