Skip to content

Add style progression images to README #2

Add style progression images to README

Add style progression images to README #2

Workflow file for this run

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