Merge pull request #28 from tylere/patch-1 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Resetting git to master | |
run: git reset --hard master | |
- name: Resetting git to master | |
run: git fetch --unshallow --tags || true | |
- name: Install poetry | |
run: python -m pip install poetry | |
- name: Install poem-plugins | |
run: poetry self add poem-plugins | |
- name: Install requirements | |
run: poetry install | |
- name: Publishing to pypi | |
run: poetry publish --build --skip-existing --no-interaction | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} |