aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbyteskeptical <40208858+byteskeptical@users.noreply.github.com>2022-06-06 19:19:38 +0000
committerbyteskeptical <40208858+byteskeptical@users.noreply.github.com>2022-06-06 19:19:38 +0000
commitb13e1aefcae50de9c54e2e5187f9a34e3a8851ec (patch)
tree0770bddfb9c9ad36d0df76bf6ecc970a0fc4720b
parent697b1353645361f79a14186074c7b00791bc6531 (diff)
cosmetic change to README.md, adding workflow to publish to PyPi and Test PyPitravis
-rw-r--r--.github/workflows/publish.yml38
-rw-r--r--.github/workflows/test.yml (renamed from .github/workflows/retry.yml)2
-rw-r--r--README.md2
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:
diff --git a/README.md b/README.md
index fe7a809..9004ae7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# retry
+# Retry
## Exception type based retry decorator for all your problematic functions.