Skip to content

Update install setup #34

Update install setup

Update install setup #34

Workflow file for this run

name: Version Update
on:
push:
branches:
- 'master'
paths:
- 'VERSION'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get local version
run: echo "version=$(cat VERSION)" >> $GITHUB_ENV
- name: Create tag
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ env.version }}
- name: Build release assets
run: |
pip install pex wheel
python3 setup.py sdist -d sdist
python3 setup.py bdist_pex
- name: Create the release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.version }}
files: dist/*
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_KEY }}
packages_dir: sdist/