File tree Expand file tree Collapse file tree 2 files changed +34
-27
lines changed
Expand file tree Collapse file tree 2 files changed +34
-27
lines changed Original file line number Diff line number Diff line change 3030 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3131 BRANCH : gh-pages # The branch the action should deploy to.
3232 FOLDER : public_html # The folder the action should deploy.
33- CLEAN : true
34-
35- pypi :
36- if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
37- runs-on : ubuntu-latest
38- environment :
39- name : pypi
40- url : https://pypi.org/p/python_workflow_definition
41- permissions :
42- id-token : write
43- steps :
44- - uses : actions/checkout@v4
45- - uses : conda-incubator/setup-miniconda@v3
46- with :
47- auto-update-conda : true
48- python-version : " 3.12"
49- environment-file : binder/environment.yml
50- auto-activate-base : false
51- - name : Build
52- shell : bash -l {0}
53- run : |
54- cd python_workflow_definition
55- hatch build
56- - name : Publish distribution 📦 to PyPI
57- uses : pypa/gh-action-pypi-publish@release/v1
58- with :
59- packages-dir : python_workflow_definition/
33+ CLEAN : true
Original file line number Diff line number Diff line change 1+ name : Pypi
2+
3+ on :
4+ push :
5+ pull_request :
6+ workflow_dispatch :
7+
8+ jobs :
9+ release :
10+ if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
11+ runs-on : ubuntu-latest
12+ environment :
13+ name : pypi
14+ url : https://pypi.org/p/python_workflow_definition
15+ permissions :
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v4
19+ - uses : conda-incubator/setup-miniconda@v3
20+ with :
21+ auto-update-conda : true
22+ python-version : " 3.12"
23+ environment-file : binder/environment.yml
24+ auto-activate-base : false
25+ - name : Build
26+ shell : bash -l {0}
27+ run : |
28+ cd python_workflow_definition
29+ hatch build
30+ - name : Publish distribution 📦 to PyPI
31+ uses : pypa/gh-action-pypi-publish@release/v1
32+ with :
33+ packages-dir : python_workflow_definition/
You can’t perform that action at this time.
0 commit comments