From 5aa614d297f71eae8cc93d83d76be747a4846664 Mon Sep 17 00:00:00 2001 From: HYP3R00T Date: Thu, 9 May 2024 21:53:12 +0530 Subject: [PATCH] pypi publish pipeline added --- .github/workflows/pypi_publish.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pypi_publish.yml diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml new file mode 100644 index 0000000..197dc17 --- /dev/null +++ b/.github/workflows/pypi_publish.yml @@ -0,0 +1,33 @@ +name: MkDocs Publish + +on: + push: + branches: + - main # Change this to your main branch name + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - name: Install dependencies + run: | + poetry install --no-root + + - name: Build and publish + env: + POETRY_PYPI_TOKEN: ${{ secrets.POETRY_PYPI_TOKEN }} + run: | + poetry build + poetry publish --username __token__ --password $POETRY_PYPI_TOKEN