v10.6.0-alpha.4 #5
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: Create Release with Library Zips | |
on: | |
release: | |
types: | |
- created | |
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*" | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' # Specify the Node.js version | |
# 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 }} | |