Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanderp committed Aug 16, 2020
1 parent 2f96832 commit b15e411
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: npm run build

- name: git add
run: git add dist && git commit -m "Initial dist subtree commit"
run: git add build && git commit -m "Initial dist subtree commit"

- name: git add
- name: git push
run: git subtree push --prefix dist origin gh-pages
29 changes: 29 additions & 0 deletions .github/workflows/updateData.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'

- name: npm install
run: npm install

- name: npm run updateData
run: npm run updateData

- name: git add
run: git add build && git commit -m "Initial dist subtree commit"

- name: git push
run: git subtree push --prefix dist origin gh-pages
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"app": "parcel src/index.html",
"lint": "eslint --ext ts,tsx,json,js src/",
"tsc": "tsc --noEmit",
"updateData": "ts-node updateData.ts"
"updateData": "ts-node updateData.ts",
"build": "parcel build --out-dir ./build src/index.html"
}
}

0 comments on commit b15e411

Please sign in to comment.