From a2d29a4d9112b45943d777905ab4688d0b7a97a9 Mon Sep 17 00:00:00 2001 From: "David H. Hagan" Date: Mon, 6 May 2024 22:31:11 -0400 Subject: [PATCH] Update gh-actions --- .github/workflows/docs.yml | 11 ++++------- .github/workflows/release.yml | 13 +++++-------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 88cc98c..33b4ce5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,22 +15,19 @@ jobs: python-version: 3.8 - name: Install poetry - uses: snok/install-poetry@v1.3.3 + uses: snok/install-poetry@v1 with: - version: 1.2.2 virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - + - name: Install dependencies - run: poetry install + run: poetry install --no-interaction - name: Install pandoc run: sudo apt-get install pandoc - name: build docs run: | - source .venv/bin/activate + source $(poetry env info --path)/bin/activate cd docs make clean make html diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f452fd..d3fa27a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: jobs: build-n-publish: name: Build and publish to PyPI - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout branch uses: actions/checkout@v2 @@ -17,17 +17,14 @@ jobs: python-version: 3.8 - name: Install poetry - uses: snok/install-poetry@v1.3.3 + uses: snok/install-poetry@v1 with: - version: 1.2.2 virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - + - name: Install dependencies - run: poetry install + run: poetry install --no-interaction - name: Build and publish to PyPI run: | poetry build - poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file + poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} \ No newline at end of file