Skip to content

new version numbering scheme. update release script #2

new version numbering scheme. update release script

new version numbering scheme. update release script #2

Workflow file for this run

name: testrelease_binary
on:
push:
#branches: [ action_test ]
tags: ["test_*"]
jobs:
make_sdist:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: build_sdist
run: |
echo This job does not specify a container.
echo It runs directly on the virtual machine.
#
git clone https://USERNAME:$GH_TOKEN@github.com/piScope/Petra-M--RF.git
cd Petra-M--RF
#
REF=$(echo ${GITHUB_REF#refs/heads/})
echo "!!!!!: "$REF
git checkout $REF
#
export PATH=/opt/python/cp37-cp37m/bin:$PATH
pip3 install twine==6.0.1
pip3 install wheel six auditwheel build
rm -rf dist/*
python3 -m build --sdist --wheel --outdir dist/ .
ls -l
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ --password ${{ secrets.TEST_PYPI_UPLOAD }} --username __token__ --verbose dist/*