Skip to content

Commit

Permalink
ci: automate docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Oct 3, 2022
1 parent 82cd4ae commit 7618154
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,28 @@ jobs:
GATSBY_OPENCAGE_API_KEY: ${{ secrets.OPENCAGE_API_KEY }}
GATSBY_HERE_API_KEY: ${{ secrets.HERE_API_KEY }}

update-docs:
name: Update docs
runs-on: ubuntu-latest
needs: [tests, typescript]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v1
with:
node-version: "${{ env.NODE_VERSION }}"

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: update docs
run: npm run docs:update

release:
needs: [tests, typescript]
if: github.event_name == 'push' && github.repository == 'smeijer/leaflet-geosearch'
Expand Down

0 comments on commit 7618154

Please sign in to comment.