Files
xinjian0101-continuity-dire…/.github/workflows/release.yml
dependabot[bot] 68d1e9ad03 ci: bump actions/setup-python from 5 to 7
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-20 04:23:55 +00:00

40 lines
1.1 KiB
YAML

name: Build release package
on:
workflow_dispatch:
push:
tags: ["v*"]
permissions:
contents: read
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Read version
id: version
shell: bash
run: |
VERSION="$(tr -d '\r\n' < VERSION)"
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Invalid VERSION: $VERSION" >&2
exit 1
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Verify package import
run: python scripts/smoke_import.py
- name: Run tests
run: PYTHONPATH=tests python -m unittest discover -s tests -p "test_*.py"
- name: Build installable zip
run: python scripts/build_release.py
- uses: actions/upload-artifact@v4
with:
name: continuity-director-v${{ steps.version.outputs.version }}
path: dist/continuity-director-v${{ steps.version.outputs.version }}.zip
if-no-files-found: error