Skip to content

Commit

Permalink
feat: generate and search data
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Stewart committed Jul 30, 2020
0 parents commit 23510a1
Show file tree
Hide file tree
Showing 8 changed files with 6,613 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate
on:
push:
branches:
- master

jobs:
generate:
name: Build
runs-on: ubuntu-latest
if: "github.event.head_commit.message != 'fix(action): generate data'"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install
run: npm ci
- name: Generate
run: node ./generate/gen.js
- name: Commit
uses: EndBug/add-and-commit@v4
with:
add: 'src/cityMap.json'
force: true
message: 'fix(action): generate data'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
name: Build
runs-on: ubuntu-latest
if: "github.event.head_commit.message == 'fix(action): generate data'"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
data.csv
.env
Loading

0 comments on commit 23510a1

Please sign in to comment.