Skip to content

Commit

Permalink
make git work
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanderp committed Aug 17, 2020
1 parent cde9ea0 commit 6f74423
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- name: npm install
run: npm install

- name: npm run build
run: npm run build
- name: npm run buildGit
run: npm run buildGit

- name: push changes to remote
run: |
git config --global user.name "github-actions[bot]"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/updateData.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Update

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 0/2 1/1 * ? *'

jobs:
build:
update:
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"lint": "eslint --ext ts,tsx,json,js src/",
"tsc": "tsc --noEmit",
"updateData": "ts-node updateData.ts",
"build": "parcel build --out-dir ./build src/index.html"
"build": "parcel build --out-dir ./build src/index.html",
"buildGit": "parcel build --out-dir ./build --public-url ./WebcamMap/ src/index.html"
}
}

0 comments on commit 6f74423

Please sign in to comment.