Skip to content

lve-tools 0.1.4 #9

lve-tools 0.1.4

lve-tools 0.1.4 #9

Workflow file for this run

name: Run Tests and Publish Wheel
on:
# on release publish
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Fresh Virtual Environment
run: |
pip install --upgrade pip
python3.10 -m venv env
export PATH=$PATH:/home/docker/.local/bin
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Install Packaging Dependencies
run: pip install build twine
- name: Package
env:
VERSION: ${{ github.ref }}
run: cd lve-tools && bash scripts/wheel.sh $(echo $VERSION | sed 's/^refs\/tags\/v//')
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
VERSION: ${{ github.ref }}
run: cd lve-tools && bash scripts/pypi-release.sh lve_tools-$(echo $VERSION | sed 's/^refs\/tags\/v//') --production