Skip to content

Commit 0a68f8d

Browse files
authored
Update publish.yml
1 parent 3bb93e6 commit 0a68f8d

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,18 @@ on:
44
types: [published]
55

66
jobs:
7-
release:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python 3.9
12-
uses: actions/setup-python@v2
13-
with:
14-
python-version: "3.9"
15-
- name: Install poetry ${{ matrix.poetry-version }}
16-
env:
17-
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
18-
run: |
19-
python -m ensurepip
20-
python -m pip install --upgrade pip
21-
python -m pip install poetry==1.3.2
22-
- name: View poetry --help
23-
run: poetry --help
24-
- name: Install dependencies
25-
shell: bash
26-
run: python -m poetry install
27-
- name: Build package
28-
run: python3 -m poetry build
29-
- name: Publish Package
30-
run: python3 -m poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install poetry
12+
run: pipx install poetry
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.13'
16+
cache: 'poetry'
17+
- run: poetry install --with dev
18+
- name: Build package
19+
run: poetry build
20+
- name: Publish Package
21+
run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)