Skip to content

Commit

Permalink
publish with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
tallywiesenberg committed Mar 14, 2023
1 parent cd0f6b4 commit c9660cc
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,12 @@ on:
types: [published, released]

jobs:
build-n-publish:
name: Publish tellor-disputables
runs-on: ubuntu-18.04

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish tellor-disputables to Test PyPI
if: "github.event.release.prerelease"
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TELLOR_DISPUTABES_TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish tellor-disputables to PyPI
if: "!github.event.release.prerelease"
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TELLOR_DISPUTABES_PYPI_API_TOKEN }}
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.16
with:
python_version: "3.9.5"
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit c9660cc

Please sign in to comment.