File tree Expand file tree Collapse file tree 2 files changed +32
-29
lines changed Expand file tree Collapse file tree 2 files changed +32
-29
lines changed Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ publish :
11
+ permissions :
12
+ id-token : write
13
+ contents : read
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Install Poetry
20
+ uses : snok/install-poetry@v1.3.2
21
+
22
+ - name : Build a binary wheel and a source tarball
23
+ run : poetry build
24
+
25
+ - name : Publish package distributions to PyPI
26
+ uses : pypa/gh-action-pypi-publish@v1.12.4
27
+ with :
28
+ verbose : true
Original file line number Diff line number Diff line change 1
- name : cd
1
+ name : release
2
2
3
3
# Only trigger when a pull request into main branch is merged
4
4
on :
5
5
pull_request :
6
- types : [closed]
6
+ types : [ closed ]
7
7
branches :
8
8
- main
9
- workflow_dispatch :
10
9
11
10
jobs :
12
- publish :
13
- # This job will only run if the PR has been merged (and not closed without merging).
14
- if : ' github.event.pull_request.merged == true'
15
- permissions :
16
- id-token : write
17
- contents : read
18
- runs-on : ubuntu-latest
19
- steps :
20
- - name : Checkout repository
21
- uses : actions/checkout@v3
22
-
23
- - name : Install Poetry
24
- uses : snok/install-poetry@v1.3.2
25
-
26
- - name : Build a binary wheel and a source tarball
27
- run : poetry build
28
-
29
- - name : Publish package distributions to PyPI
30
- uses : pypa/gh-action-pypi-publish@v1.12.4
31
- with :
32
- verbose : true
33
-
34
11
release :
35
- # This job will only run if the PR has been merged (and not closed without merging).
36
- if : " github.event.pull_request.merged == true && !contains(github.event.pull_request.head.message, 'skipci')"
12
+ if : ' github.event.pull_request.merged == true'
37
13
runs-on : ubuntu-latest
38
- needs : [publish]
39
14
steps :
40
15
- name : Checkout code
41
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v4
42
17
43
18
- name : Install poetry
44
19
run : pip install poetry
You can’t perform that action at this time.
0 commit comments