Skip to content

Commit

Permalink
Set up publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
whimo committed Jul 5, 2024
1 parent 8591f80 commit 7c2f5bc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: "3.12"

- name: Install poetry
run: pip install -U poetry
Expand All @@ -40,5 +39,8 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction

- name: Run tests
run: poetry publish --build
- name: Build using poetry
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 7c2f5bc

Please sign in to comment.