chore: update maps-docs repo when main is updated #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update docs to maps-docs repo | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
update_docs: | ||
name: Update docs on maps-docs repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout maps repo | ||
uses: actions/checkout@v4 | ||
map: maps | ||
- name: Checkout maps-docs repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: rnmapbox/maps-docs | ||
ssh-key: ${{ secrets.MAPS_DOCS_DEPLOY_KEY }} | ||
path: maps-docs | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn install |