Create Release with Library Zips #12
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: | | |
cd web/libraries/mapbox-gl | |
zip -r ../../../mapbox-gl.zip . -x "*.git*" | |
- name: Zip maplibre-gl library | |
run: | | |
cd web/libraries/maplibre-gl | |
zip -r ../../../maplibre-gl.zip . -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 }} | |