Add style progression images to README #2
This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Build plugin ZIP | |
| id: package | |
| run: | | |
| python scripts/package_plugin.py | |
| echo "zip=$(ls dist/*.zip)" >> "$GITHUB_OUTPUT" | |
| - name: Build artifact metadata | |
| id: artifact | |
| env: | |
| EVENT_NAME: ${{ github.event_name }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| REF_NAME: ${{ github.ref_name }} | |
| run: | | |
| if [ "$EVENT_NAME" = "pull_request" ]; then | |
| echo "name=qgis-mapbox-gl-style-plugin-pr-${PR_NUMBER}-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | |
| elif [ "$REF_NAME" = "main" ]; then | |
| echo "name=qgis-mapbox-gl-style-plugin-main-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "name=qgis-mapbox-gl-style-plugin-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Upload plugin ZIP | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.artifact.outputs.name }} | |
| path: ${{ steps.package.outputs.zip }} | |
| if-no-files-found: error | |
| retention-days: 14 |