Skip to content

Commit

Permalink
publish from github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
willoma committed Mar 11, 2024
1 parent 76ce794 commit a9c72d4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 0 additions & 12 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,3 @@ An item type may have:

After creating a new item type, Add a line in the mapping table in `README.md`,
and add a subsection in the same section of the `README.md`.

## Publishing a release

These notes are here just in case I forget the process, because I do those
things too rarely to remember them correctly...

First, change version in `setup.py`, then execute:

```plain
python3 -m build
python3 -m twine upload dist/*
```

0 comments on commit a9c72d4

Please sign in to comment.