diff options
| author | byteskeptical <40208858+byteskeptical@users.noreply.github.com> | 2022-06-06 19:19:38 +0000 |
|---|---|---|
| committer | byteskeptical <40208858+byteskeptical@users.noreply.github.com> | 2022-06-06 19:19:38 +0000 |
| commit | b13e1aefcae50de9c54e2e5187f9a34e3a8851ec (patch) | |
| tree | 0770bddfb9c9ad36d0df76bf6ecc970a0fc4720b | |
| parent | 697b1353645361f79a14186074c7b00791bc6531 (diff) | |
cosmetic change to README.md, adding workflow to publish to PyPi and Test PyPitravis
| -rw-r--r-- | .github/workflows/publish.yml | 38 | ||||
| -rw-r--r-- | .github/workflows/test.yml (renamed from .github/workflows/retry.yml) | 2 | ||||
| -rw-r--r-- | README.md | 2 |
3 files changed, 40 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..335ed08 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,38 @@ +name: Publish Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build --sdist --wheel --outdir /dist . + - name: Publish distribution to Test PyPI + uses: pypa/gh-action-pypi-publish@root + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + user: __token__ + - name: Publish distribution to PyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@root + with: + password: ${{ secrets.PYPI_API_TOKEN }} + user: __token__ diff --git a/.github/workflows/retry.yml b/.github/workflows/test.yml index 46acc88..8a9051e 100644 --- a/.github/workflows/retry.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Retry +name: Test on: push: @@ -1,4 +1,4 @@ -# retry +# Retry ## Exception type based retry decorator for all your problematic functions. |
