Skip to content

feat: richer analysis progress (ETA, per-photo decision), CPU warning… #2

feat: richer analysis progress (ETA, per-photo decision), CPU warning…

feat: richer analysis progress (ETA, per-photo decision), CPU warning… #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Tag to release (e.g. v0.1.1)"
required: true
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build tools
run: pip install build
- name: Build wheel and sdist
run: python -m build
- name: Determine tag name
id: tag
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "name=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
else
echo "name=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.name }}
name: ShutterSift ${{ steps.tag.outputs.name }}
generate_release_notes: true
files: |
dist/*.whl
dist/*.tar.gz