Skip to content
name: dev publishing on GitHub Releases
on:
push:
branches:
- dev
workflow_dispatch:
permissions:
contents: write
jobs:
qgis-job:
runs-on: ubuntu-latest
container: qgis/qgis:latest
steps:
- name: Inspect container
run: |
qgis --version
python3 -V
echo $SHELL
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
python3 -m venv .venv --system-site-packages
source .venv/bin/activate
python -m pip install --upgrade pip wheel setuptools setuptools_scm build twine
pip install -r requirements.txt
shell: bash
- name: Build package
run: |
source .venv/bin/activate
python -m setuptools_scm ls
python -m build
shell: bash
- name: Create Release
uses: ncipollo/release-action@v1.14.0
with:
artifacts: "dist/*"
tag: ${{ github.sha }}
draft: true
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}