Skip to content

Commit

Permalink
🐛 fix: use python 3.11 in deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ljnsn committed Jan 24, 2024
1 parent 2e91c01 commit 2e590c6
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ name: Upload Python Package
on:
push:
tags:
- 'v*'
- "v*"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install -U pip poetry
poetry install
- name: Publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
run: |
./scripts/publish.sh
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry>=1.2.0
poetry install
- name: Publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
run: |
./scripts/publish.sh

0 comments on commit 2e590c6

Please sign in to comment.