diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..cbe6285 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,28 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel build twine + pip install -r requirements.txt + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | + python3 -m build + python3 -m twine upload --repository pypi dist/* diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/ci-dev.yml rename to .github/workflows/ci.yml diff --git a/pyproject.toml b/pyproject.toml index fc3856c..6bf3d48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sqs-client" -version = "0.0.1" +version = "0.0.3" authors = [ {name="Digital Fortress", email="hai.huynh@digitalfortress.dev" }, ]