From 6f7442381647f77f83f6a6741787521f99d8b122 Mon Sep 17 00:00:00 2001 From: wouter van der plas Date: Mon, 17 Aug 2020 07:42:29 +0200 Subject: [PATCH] make git work --- .github/workflows/build.yml | 6 +++--- .github/workflows/updateData.yml | 9 ++++----- package.json | 3 ++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfd4c11c..b5ce47b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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]" diff --git a/.github/workflows/updateData.yml b/.github/workflows/updateData.yml index f7c0037a..61b2ddf3 100644 --- a/.github/workflows/updateData.yml +++ b/.github/workflows/updateData.yml @@ -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: diff --git a/package.json b/package.json index 53ddb1e6..f547758d 100644 --- a/package.json +++ b/package.json @@ -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" } }