Skip to content

PyPI Release

PyPI Release #23

Workflow file for this run

name: release
on:
create:
tags:
- v*
jobs:
tagged-release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Create Release for new Tag
uses: marvinpinto/action-automatic-releases@latest
with:
title: ArrAPI ${{ github.event.ref }}
repo_token: ${{ secrets.PAT }}
prerelease: false
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*