diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..ddae444 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,33 @@ +name: Publish Package to Python Package Index + +on: + push: + paths-ignore: + - .github/** + branches: + - main + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: 🔨 Checkout + uses: actions/checkout@v3 + + - name: 🔨 Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: 🔨 Setup Dependencies + run: | + python -m pip install poetry + poetry install + poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} + + - name: 📦 Build + run: poetry build + + - name: 🎉 Publish + run: poetry publish diff --git a/pyproject.toml b/pyproject.toml index bcf4f52..39a8572 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "deployplex" -version = "0.0.0" +version = "0.0.1" description = "DeployPlex Python SDK" authors = ["Alvaro Molina "] license = "Apache-2.0"