Merge pull request #13 from devkyato/release/v0.2.3 #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: ["v*.*.*"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| env: | |
| SOURCE_DATE_EPOCH: "1700000000" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.14" | |
| cache: pip | |
| - name: Verify, test, and build | |
| run: | | |
| python -m pip install -e "./python[dev]" build platformio | |
| python -m pytest python | |
| python -m ruff check python benchmarks scripts | |
| python -m mypy python/src | |
| python scripts/check_docs.py | |
| platformio test -e native | |
| platformio run -e esp32dev | |
| python -m build python | |
| python scripts/build_release.py --expected-version "${GITHUB_REF_NAME#v}" | |
| python scripts/build_linux_bundle.py --expected-version "${GITHUB_REF_NAME#v}" | |
| python scripts/build_checksums.py | |
| python scripts/verify_reproducible.py | |
| sh -n packaging/linux/install.sh packaging/linux/uninstall.sh | |
| - name: Create GitHub release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: >- | |
| gh release create "$GITHUB_REF_NAME" | |
| dist/OpenNet-*.zip | |
| dist/OpenNet-linux-*.tar.gz | |
| dist/SHA256SUMS | |
| python/dist/* | |
| --notes-file "docs/releases/$GITHUB_REF_NAME.md" | |
| --verify-tag | |
| --title "OpenNet $GITHUB_REF_NAME" |