File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 11
11
parse_commit_info :
12
12
runs-on : ubuntu-latest
13
13
outputs :
14
- can_deploy : ${{ steps.decide .outputs.can_deploy }}
15
- deploy_to : ${{ steps.decide .outputs.deploy_to }}
14
+ deploy_to : ${{ steps.variables .outputs.deploy_to }}
15
+ commit_title : ${{ steps.variables .outputs.commit_title }}
16
16
17
17
steps :
18
18
- name : Checkout Code
24
24
run : |
25
25
cp -r .github/utils ../utils
26
26
27
- - name : Decide Whether to Build and/or Release
28
- id : decide
27
+ - name : Decide where to deploy and create output variables
28
+ id : variables
29
29
run : |
30
30
python ../utils/please.py set_deploy_to
31
31
python ../utils/please.py set_commit_title
34
34
35
35
- name : See outputs
36
36
run : |
37
- echo 'set_deploy_to =${{ steps.decide .outputs.set_deploy_to }}'
38
- echo 'set_commit_title =${{ steps.decide .outputs.set_commit_title }}'
37
+ echo 'deploy_to =${{ steps.variables .outputs.deploy_to }}'
38
+ echo 'commit_title =${{ steps.variables .outputs.commit_title }}'
39
39
40
40
build-documentation :
41
41
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 17
17
needs : [run-tests]
18
18
runs-on : ubuntu-latest
19
19
outputs :
20
- publish_on : ${{ steps.check-tag .outputs.publish_on }}
20
+ publish_on : ${{ steps.variables .outputs.publish_on }}
21
21
22
22
strategy :
23
23
matrix :
@@ -40,14 +40,18 @@ jobs:
40
40
- name : Make uv use system python
41
41
run : echo "UV_SYSTEM_PYTHON=true" >> $GITHUB_ENV
42
42
43
- - name : Check for semantic version tag
44
- id : check-tag
43
+ - name : Copy build utils
44
+ run : |
45
+ cp -r .github/utils ../utils
46
+
47
+ - name : Decide where to publish and create output variables
48
+ id : variables
45
49
run : python ../utils/please.py set_publish_on
46
50
47
51
- name : See outputs
48
52
shell : bash
49
53
run : |
50
- echo "publish_on="${{ steps.check-tag .outputs.publish_on }}
54
+ echo "publish_on="${{ steps.variables .outputs.publish_on }}
51
55
52
56
# Ref: https://github.com/pypa/gh-action-pypi-publish
53
57
publish :
You can’t perform that action at this time.
0 commit comments