Skip to content

Commit 18074ea

Browse files
committed
Add mapmlify task to copy local build to sibling mapmlify project
Update sync.yml so that it will sync the build to the mapmlify repo
1 parent 5e9e7ce commit 18074ea

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/sync.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ jobs:
6767
user_name: 'prushforth'
6868
commit_msg: '[AUTO] Sync MapML Build'
6969
destination_branch: main
70+
- name: Pushes to mapmlify repo
71+
uses: ./.github/actions/sync-repo
72+
env:
73+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
74+
with:
75+
source_folder: 'dist'
76+
destination_repo: 'Maps4HTML/mapmlify'
77+
destination_folder: 'dist'
78+
user_email: '[email protected]'
79+
user_name: 'prushforth'
80+
commit_msg: '[AUTO] Sync MapML Build'
81+
destination_branch: main

Gruntfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,16 @@ module.exports = function(grunt) {
127127
dest: '../web-map-doc/static'
128128
}
129129
]
130+
},
131+
mapmlify: {
132+
files: [
133+
{
134+
expand: true,
135+
cwd: 'dist',
136+
src: ['**'],
137+
dest: '../mapmlify/dist'
138+
}
139+
]
130140
}
131141
},
132142
clean: {
@@ -147,6 +157,10 @@ module.exports = function(grunt) {
147157
docs: {
148158
options: {force: true},
149159
src: ['../web-map-doc/dist']
160+
},
161+
mapmlify: {
162+
options: {force: true},
163+
src: ['../mapmlify/dist']
150164
}
151165
},
152166
prettier: {
@@ -192,6 +206,7 @@ module.exports = function(grunt) {
192206
grunt.registerTask('geoserver', ['clean:geoserver', 'default', 'copy:geoserver']);
193207
grunt.registerTask('basemap', ['clean:basemap', 'default', 'copy:basemap']);
194208
grunt.registerTask('docs', ['clean:docs', 'default', 'copy:docs']);
209+
grunt.registerTask('mapmlify', ['clean:mapmlify', 'default', 'copy:mapmlify']);
195210
grunt.registerTask('sync', ['default', 'experiments', 'extension', 'docs']);
196211

197212
};

0 commit comments

Comments
 (0)