From 5ae6f947c3cba83c058d1d62db1f0b541caf54cd Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Wed, 19 Jun 2024 02:15:05 -0400 Subject: [PATCH] "Standardized" release workflow --- .github/workflows/release.yml | 49 +++++++++-------------------------- 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c870612..54ee962 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,43 +1,18 @@ on: - workflow_dispatch: release: types: - published - name: Release - jobs: - - sdist: - name: Creating source release & pure wheel - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - - name: Install Poetry - uses: snok/install-poetry@v1 - - - name: Installing - run: poetry install --no-interaction - - - name: Building documentation - run: | - cd docs && poetry run make clean && poetry run make html - - - name: Publishing documentation - run: | - poetry run ghp-import -f -n -p docs/_build/html - - - name: Publishing - env: - PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }} - run: | - poetry config pypi-token.pypi $PYPI_TOKEN - poetry publish --build + build: + permissions: + id-token: write + pages: write + uses: tktech/python-standard/.github/workflows/release.yml@v1 + with: + use_poetry: true + use_sphinx: true + python_version: '3.11' + platform: 'ubuntu-latest' + secrets: + PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file