Skip to content

Commit c3e90af

Browse files
authored
Merge pull request #15 from OpenGeoscience/release
Add a GitHub Action to release to PyPI
2 parents 6b23c5b + 9884052 commit c3e90af

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v6
14+
with:
15+
# Tags are needed to compute the current version number
16+
fetch-depth: 0
17+
lfs: true
18+
- name: Set up Python
19+
uses: actions/setup-python@v6
20+
- name: Install Python build
21+
run: |
22+
pip install build
23+
- name: Build the Python distribution
24+
run: |
25+
python -m build
26+
- name: Publish the Python distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10

0 commit comments

Comments
 (0)