We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 508f21b commit 21c6ae8Copy full SHA for 21c6ae8
.github/workflows/publish.yml
@@ -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
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