Skip to content

Add maplibs and github action to zip #1

Add maplibs and github action to zip

Add maplibs and github action to zip #1

Workflow file for this run

name: Create Release with Library Zips
on:
push:
branches: [ 10.6.x-dev ]
pull_request:
branches: [ 10.6.x-dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# If PHP dependencies are not relevant, you can remove the steps related to Composer
- name: Install PHP dependencies
run: composer install --no-dev
# Zip the mapbox-gl and maplibre-gl directories
- name: Zip mapbox-gl library
run: zip -r mapbox-gl.zip web/libraries/mapbox-gl -x "*.git*"
- name: Zip maplibre-gl library
run: zip -r maplibre-gl.zip web/libraries/maplibre-gl -x "*.git*"
# Release with the zipped libraries
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
mapbox-gl.zip
maplibre-gl.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}