Update python-publish.yml

This commit is contained in:
Aleksey
2022-07-18 03:44:58 +03:00
committed by GitHub
parent 9429c443c4
commit 59d43736c0

View File

@@ -12,28 +12,27 @@ on:
release: release:
types: [published] types: [published]
permissions:
contents: read
jobs: jobs:
deploy: regular:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9 ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v2
with: with:
python-version: '3.x' python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install build pip install twine
- name: Build package - name: Compile package
run: python -m build run: |
python3 setup.py sdist
- name: Publish package - name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}