release_binary #8
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_binary | |
on: | |
push: | |
#branches: [ action_test ] | |
tags: ["v_*"] | |
jobs: | |
make_sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- name: build_sdist | |
run: | | |
echo This job does not specify a container. | |
echo It runs directly on the virtual machine. | |
# | |
git clone https://github.com/piScope/PetraM_Base.git | |
cd PetraM_Base | |
# | |
REF=$(echo ${GITHUB_REF#refs/heads/}) | |
echo "!!!!!: "$REF | |
git checkout $REF | |
# | |
export PATH=/opt/python/cp37-cp37m/bin:$PATH | |
pip3 install wheel six auditwheel twine build | |
rm -rf dist/* | |
python3 -m build --sdist --wheel --outdir dist/ . | |
ls -l | |
python3 -m twine upload --password ${{ secrets.PYPI_UPLOAD }} --username __token__ --verbose dist/* |