Skip to content

Commit

Permalink
Update gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhagan committed May 7, 2024
1 parent b834185 commit a2d29a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 comments on commit a2d29a4

Please sign in to comment.