File tree 4 files changed +12
-25
lines changed
4 files changed +12
-25
lines changed Original file line number Diff line number Diff line change 30
30
runs-on : ubuntu-latest
31
31
outputs :
32
32
VERSION : ${{ steps.set-version.outputs.VERSION }}
33
- RC : ${{ steps.set-version.outputs.RC }}
34
33
steps :
35
34
- uses : actions/checkout@v4
36
35
with :
@@ -43,24 +42,21 @@ jobs:
43
42
- name : Install Poetry
44
43
run : make install-poetry
45
44
46
- - name : Extract version and rc
45
+ - name : Set version
47
46
id : set-version
48
47
run : |
49
- VERSION=$(poetry version --short)
50
- RC="$(date +%Y%m%d)"
51
- echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
52
- echo "RC=$RC" >> "$GITHUB_OUTPUT"
48
+ CURRENT_VERSION=$(poetry version --short)
49
+ TIMESTAMP=$(date +%Y%m%d%H%M%S)
50
+ echo "VERSION=${CURRENT_VERSION}.dev${TIMESTAMP}" >> "$GITHUB_OUTPUT"
53
51
54
- - name : Debug version and rc
55
- run : echo "Publishing version ${{ steps.set-version.outputs.VERSION }}rc${{ steps.set-version.outputs.RC }} "
52
+ - name : Debug version
53
+ run : echo "Publishing version ${{ steps.set-version.outputs.VERSION }}"
56
54
57
55
nightly-build :
58
56
needs : set-version
59
57
uses : ./.github/workflows/pypi-build-artifacts.yml
60
58
with :
61
- version : ${{ needs.set-version.outputs.VERSION }} # i.e. 0.9.0
62
- rc : ${{ needs.set-version.outputs.RC }} # i.e. 20250203
63
-
59
+ version : ${{ needs.set-version.outputs.VERSION }}
64
60
testpypi-publish :
65
61
name : Publish to TestPypi
66
62
needs :
Original file line number Diff line number Diff line change 25
25
VERSION :
26
26
required : true
27
27
type : string
28
- RC :
29
- required : true
30
- type : string
31
28
32
29
jobs :
33
30
pypi-build-artifacts :
56
53
- name : Set version with RC
57
54
env :
58
55
VERSION : ${{ inputs.VERSION }}
59
- RC : ${{ inputs.RC }}
60
- run : python -m poetry version "${{ env.VERSION }}rc${{ env.RC }}" # e.g., 0.8.0rc1
56
+ run : python -m poetry version "${{ env.VERSION }}
61
57
62
58
# Publish the source distribution with the version that's in
63
59
# the repository, otherwise the tests will fail
97
93
- name : Merge Artifacts
98
94
uses : actions/upload-artifact/merge@v4
99
95
with :
100
- name : " pypi-release-candidate-${{ inputs.VERSION }}rc${{ inputs.RC }} "
96
+ name : " pypi-release-candidate-${{ inputs.VERSION }}"
101
97
pattern : pypi-release-candidate*
102
98
delete-merged : true
Original file line number Diff line number Diff line change @@ -121,8 +121,7 @@ jobs:
121
121
- validate-library-version
122
122
uses : ./.github/workflows/svn-build-artifacts.yml
123
123
with :
124
- version : ${{ needs.validate-inputs.outputs.VERSION }}
125
- rc : ${{ needs.validate-inputs.outputs.RC }}
124
+ version : ${{ needs.validate-inputs.outputs.VERSION }}rc${{ needs.validate-inputs.outputs.RC }}
126
125
127
126
# PyPi
128
127
pypi-build-artifacts :
@@ -131,5 +130,4 @@ jobs:
131
130
- validate-library-version
132
131
uses : ./.github/workflows/pypi-build-artifacts.yml
133
132
with :
134
- version : ${{ needs.validate-inputs.outputs.VERSION }}
135
- rc : ${{ needs.validate-inputs.outputs.RC }}
133
+ version : ${{ needs.validate-inputs.outputs.VERSION }}rc${{ needs.validate-inputs.outputs.RC }}
Original file line number Diff line number Diff line change 25
25
VERSION :
26
26
required : true
27
27
type : string
28
- RC :
29
- required : true
30
- type : string
31
28
32
29
jobs :
33
30
svn-build-artifacts :
91
88
- name : Merge Artifacts
92
89
uses : actions/upload-artifact/merge@v4
93
90
with :
94
- name : " svn-release-candidate-${{ inputs.VERSION }}rc${{ inputs.RC }} "
91
+ name : " svn-release-candidate-${{ inputs.VERSION }}"
95
92
pattern : svn-release-candidate*
96
93
delete-merged : true
You can’t perform that action at this time.
0 commit comments