File tree 2 files changed +60
-50
lines changed
2 files changed +60
-50
lines changed Original file line number Diff line number Diff line change
1
+ name : CI/Deploy
2
+
3
+ on :
4
+ push :
5
+ tags : ["v*"]
6
+
7
+ jobs :
8
+
9
+ unit :
10
+ uses : ./.github/workflows/unit.yml
11
+
12
+ notebooks :
13
+ uses : ./.github/workflows/notebook_smoke.yml
14
+
15
+ check_semantic_version_placeholder :
16
+ name : Check semantic version placeholder exists in the __init__
17
+
18
+ runs-on : ubuntu-latest
19
+
20
+ steps :
21
+
22
+ - uses : actions/checkout@v3
23
+
24
+ - name : Check lines exist
25
+ run : |
26
+ grep -x "__version__ = ... # semantic-version-placeholder" gpax/__init__.py
27
+
28
+ build_and_publish :
29
+ name : Upload release to PyPI
30
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
31
+ runs-on : ubuntu-latest
32
+ environment :
33
+ name : pypi
34
+ url : https://pypi.org/p/gpax
35
+ permissions :
36
+ id-token : write
37
+
38
+ needs :
39
+ - check_semantic_version_placeholder
40
+ - unit
41
+ - notebooks
42
+
43
+ steps :
44
+
45
+ - name : Checkout
46
+ uses : actions/checkout@v3
47
+
48
+ - name : Set up Python 3.9
49
+ uses : actions/setup-python@v2
50
+ with :
51
+ python-version : 3.9
52
+
53
+ - name : Build and apply version
54
+ run : bash scripts/build_project.sh
55
+
56
+ - name : Publish package distributions to PyPI
57
+ uses : pypa/gh-action-pypi-publish@release/v1
58
+ with :
59
+ # CURRENTLY USING TEST SERVER FOR NOW!!!!
60
+ repository-url : https://test.pypi.org/legacy/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments