From 5a01f3953239d22ee2ab58f10bd25e328e97dd84 Mon Sep 17 00:00:00 2001 From: Jayakrishna Konda Date: Tue, 14 Jul 2026 16:05:53 -0400 Subject: [PATCH] Add tag-triggered release workflow publishing build artifacts --- .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bdb3b01 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release + +# Push a semver tag to publish the Python package to a GitHub release: +# git tag v0.2.0 && git push origin v0.2.0 +on: + push: + tags: + - "v*.*.*" + workflow_dispatch: + +permissions: + contents: write + +jobs: + package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Run tests first + run: | + pip install pytest + python -m pytest tests -q + - name: Build wheel and sdist + run: | + pip install build + python -m build + - name: Upload run artifact + uses: actions/upload-artifact@v4 + with: + name: scribe-dist + path: dist/* + - name: Attach to GitHub release + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v2 + with: + files: dist/* + generate_release_notes: true + body: | + Install with: pip install + Note the CUDA/GPU requirements in the README; models download on + first run.