Skip to content

Commit

Permalink
Fix deploy actions (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarlevin authored Jan 16, 2025
1 parent f96e68f commit 7a86482
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ jobs:
python-version: 3.8

# Setup poetry
- name: Install poetry 1.5.1
- name: Install poetry 1.8.4
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==1.5.1
python -m pip install poetry==1.8.4
- name: Install build dependencies
run: sudo apt-get -y install libcairo2-dev pkg-config python3-dev

- name: Install dependencies
shell: bash
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/deploy-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,26 @@ jobs:
python-version: 3.8

# Setup poetry
- name: Install poetry 1.5.1
- name: Install poetry 1.8.4
run: |
python -m ensurepip
python -m pip install --upgrade pip
python -m pip install poetry==1.5.1
python -m pip install poetry==1.8.4
- name: Install build dependencies
run: sudo apt-get -y install libcairo2-dev pkg-config python3-dev

- name: Install dependencies
shell: bash
run: poetry install --all-extras

- name: Build package
run: poetry run python scripts/build_package.py

- name: Update version if needed
if: ${{ inputs.level != 'patch' }}
run: poetry version ${{ inputs.level }}

- name: Build package
run: poetry run python scripts/build_package.py

- name: Discover current version
run: |
poetry run pretext --version
Expand Down

0 comments on commit 7a86482

Please sign in to comment.