File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 66 - ' *'
77
88jobs :
9+ pypi :
10+ name : build and deploy to PyPI
11+ if : github.repository == 'ACCESS-NRI/yamanifest' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
12+ runs-on : " ubuntu-latest"
13+ permissions :
14+ id-token : write
15+
16+ steps :
17+ - name : Checkout source
18+ 19+
20+ - name : Set up Python 3.11
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : 3.11
24+
25+ - name : Install build dependencies
26+ run : python -m pip install build twine
27+
28+ - name : Build distributions
29+ shell : bash -l {0}
30+ run : |
31+ git clean -xdf
32+ pyproject-build
33+
34+ - name : Publish package to PyPI
35+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
36+
937
1038 conda :
1139 name : Build with conda and upload
4977 python-version : ${{ vars.PY_VERSION }}
5078 user : accessnri
5179 label : main
52- token : ${{ secrets.ANACONDA_TOKEN }}
80+ token : ${{ secrets.ANACONDA_TOKEN }}
You can’t perform that action at this time.
0 commit comments