Skip to content

revise the flowchart in readme #3

revise the flowchart in readme

revise the flowchart in readme #3

name: Build, Release, and Upload Python Package
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Extract tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
name: ${{ env.TAG_NAME }}
tag_name: ${{ env.TAG_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List contents of dist directory
run: ls -l dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}