From 3a8fbca8d320c1ace379eef48f264f5d378bccc0 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Tue, 21 Jul 2020 15:57:06 +0200 Subject: [PATCH] Added github action to publish package --- .github/workflows/poetry-dist.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/poetry-dist.yaml diff --git a/.github/workflows/poetry-dist.yaml b/.github/workflows/poetry-dist.yaml new file mode 100644 index 0000000..8dd7718 --- /dev/null +++ b/.github/workflows/poetry-dist.yaml @@ -0,0 +1,22 @@ +name: Distribute package + +on: + push: + branches: + - stable + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install poetry + run: | + python -m pip install --upgrade pip + pip install -U poetry pip + + - name: Build and publish + run: poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}