Github action poetry piblish, poetry
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
|
||||
name: Poetry publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
buildPush:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install poetry
|
||||
- name: Set Version number
|
||||
run: |
|
||||
poetry version ${{ github.event_name }}
|
||||
- name: Build and Publish to PyPI
|
||||
run: |
|
||||
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
||||
poetry publish --build
|
||||
Reference in New Issue
Block a user