Skip to content

Commit 21c6ae8

Browse files
committed
Add PyPI publish workflow
1 parent 508f21b commit 21c6ae8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Upload release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/xtgeoapp-grd3dmaps
14+
permissions:
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Python 3.8
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: 3.8
27+
28+
- name: Install build dependencies
29+
run: |
30+
pip install -U pip
31+
pip install build
32+
33+
- name: Build distributions
34+
run: python -m build
35+
36+
- name: Publish package distributions to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)