Skip to content

Commit f3c3e6e

Browse files
committed
CI: Fix deploy output variables
1 parent bd09ec4 commit f3c3e6e

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/documentation.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
parse_commit_info:
1212
runs-on: ubuntu-latest
1313
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 }}
1616

1717
steps:
1818
- name: Checkout Code
@@ -24,8 +24,8 @@ jobs:
2424
run: |
2525
cp -r .github/utils ../utils
2626
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
2929
run: |
3030
python ../utils/please.py set_deploy_to
3131
python ../utils/please.py set_commit_title
@@ -34,8 +34,8 @@ jobs:
3434
3535
- name: See outputs
3636
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 }}'
3939
4040
build-documentation:
4141
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
needs: [run-tests]
1818
runs-on: ubuntu-latest
1919
outputs:
20-
publish_on: ${{ steps.check-tag.outputs.publish_on }}
20+
publish_on: ${{ steps.variables.outputs.publish_on }}
2121

2222
strategy:
2323
matrix:
@@ -40,14 +40,18 @@ jobs:
4040
- name: Make uv use system python
4141
run: echo "UV_SYSTEM_PYTHON=true" >> $GITHUB_ENV
4242

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
4549
run: python ../utils/please.py set_publish_on
4650

4751
- name: See outputs
4852
shell: bash
4953
run: |
50-
echo "publish_on="${{ steps.check-tag.outputs.publish_on }}
54+
echo "publish_on="${{ steps.variables.outputs.publish_on }}
5155
5256
# Ref: https://github.com/pypa/gh-action-pypi-publish
5357
publish:

0 commit comments

Comments
 (0)