Release CI #30
Workflow file for this run
This file contains 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 CI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
# use the minimum py ver we support to generate the wheel | |
python-version: 3.8 | |
- name: install build deps | |
run: | | |
python -m pip install -U pip | |
python -m pip install -U hatch | |
python -m pip install -r proto/requirements.txt | |
- name: build otaclient package | |
run: | | |
hatch build -t wheel | |
- name: build a proto binary | |
run: | | |
pushd proto | |
make | |
popd | |
cp proto/pb2/dist/*.whl dist | |
- name: calculate checksum | |
run: | | |
for WHL in dist/*.whl; \ | |
do \ | |
sha256sum ${WHL} | sed -E "s@(\w+)\s+.*@sha256:\1@" > \ | |
${WHL}.checksum; \ | |
done | |
- name: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
dist/*.whl | |
dist/*.checksum |