Version fix, github actions update

master
AnthonyF 2021-12-09 21:41:11 -05:00
parent e0b2ca8f4f
commit 67cd64f3ce
2 changed files with 30 additions and 28 deletions

View File

@ -1,29 +1,31 @@
on: push
name: Build and publish bandcamp-downloader to TestPyPI
on:
push:
branches:
- master
jobs:
build-n-publish:
name: Build and publish bandcamp-downloader to TestPyPI
runs-on: ubuntu-20.04
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install wheel
- name: Build a binary wheel and a source tarball
run: >-
python
setup.py
sdist
bdist_wheel
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
#- name: Publish distribution to PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install dependencies
run: python -m pip install -U setuptools wheel build
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
#- name: Publish distribution to PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import pathlib
appversion = "0.0.11-dev"
appversion = "0.0.11"
here = pathlib.Path(__file__).parent.resolve()