- Change rollup to produce two targets: mapml-viewer.js and web-map.js #311
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: Sync Repositories | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: github.repository == 'Maps4HTML/MapML.js' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- run: npm install | |
- run: npm install -g grunt-cli | |
- run: grunt default | |
- name: Pushes to requirements repo | |
uses: ./.github/actions/sync-repo | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_folder: 'dist' | |
destination_repo: 'Maps4HTML/UCR-MapML-Matrix' | |
destination_folder: 'dist' | |
user_email: '[email protected]' | |
user_name: 'prushforth' | |
commit_msg: '[AUTO] Sync MapML Build' | |
destination_branch: main | |
- name: Pushes to documentation repo | |
uses: ./.github/actions/sync-repo | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_folder: 'dist' | |
destination_repo: 'Maps4HTML/web-map-doc' | |
destination_folder: 'static/dist' | |
user_email: '[email protected]' | |
user_name: 'prushforth' | |
commit_msg: '[AUTO] Sync MapML Build' | |
destination_branch: main | |
- name: Pushes to experiments repo | |
uses: ./.github/actions/sync-repo | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_folder: 'dist' | |
destination_repo: 'Maps4HTML/experiments' | |
destination_folder: 'dist' | |
user_email: '[email protected]' | |
user_name: 'prushforth' | |
commit_msg: '[AUTO] Sync MapML Build' | |
destination_branch: main | |
- name: Pushes to extensions repo | |
uses: ./.github/actions/sync-repo | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_folder: 'dist' | |
destination_repo: 'Maps4HTML/mapml-extension' | |
destination_folder: 'src/dist' | |
user_email: '[email protected]' | |
user_name: 'prushforth' | |
commit_msg: '[AUTO] Sync MapML Build' | |
destination_branch: main |