File tree Expand file tree Collapse file tree 4 files changed +11
-23
lines changed Expand file tree Collapse file tree 4 files changed +11
-23
lines changed Original file line number Diff line number Diff line change 3030 runs-on : ubuntu-latest
3131 outputs :
3232 VERSION : ${{ steps.set-version.outputs.VERSION }}
33- RC : ${{ steps.set-version.outputs.RC }}
3433 steps :
3534 - uses : actions/checkout@v4
3635 with :
@@ -43,23 +42,21 @@ jobs:
4342 - name : Install Poetry
4443 run : make install-poetry
4544
46- - name : Extract version and rc
45+ - name : Set version
4746 id : set-version
4847 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_ENV"
5351
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 }}"
5654
5755 nightly-build :
5856 needs : set-version
5957 uses : ./.github/workflows/pypi-build-artifacts.yml
6058 with :
6159 version : ${{ needs.set-version.outputs.VERSION }} # i.e. 0.9.0
62- rc : ${{ needs.set-version.outputs.RC }} # i.e. 20250203
6360
6461 testpypi-publish :
6562 name : Publish to TestPypi
Original file line number Diff line number Diff line change 2525 VERSION :
2626 required : true
2727 type : string
28- RC :
29- required : true
30- type : string
3128
3229jobs :
3330 pypi-build-artifacts :
5653 - name : Set version with RC
5754 env :
5855 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 }}
6157
6258 # Publish the source distribution with the version that's in
6359 # the repository, otherwise the tests will fail
9793 - name : Merge Artifacts
9894 uses : actions/upload-artifact/merge@v4
9995 with :
100- name : " pypi-release-candidate-${{ inputs.VERSION }}rc${{ inputs.RC }} "
96+ name : " pypi-release-candidate-${{ inputs.VERSION }}
10197 pattern: pypi-release-candidate*
10298 delete-merged: true
Original file line number Diff line number Diff line change @@ -121,8 +121,7 @@ jobs:
121121 - validate-library-version
122122 uses : ./.github/workflows/svn-build-artifacts.yml
123123 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 }}
126125
127126 # PyPi
128127 pypi-build-artifacts :
@@ -131,5 +130,4 @@ jobs:
131130 - validate-library-version
132131 uses : ./.github/workflows/pypi-build-artifacts.yml
133132 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 2525 VERSION :
2626 required : true
2727 type : string
28- RC :
29- required : true
30- type : string
3128
3229jobs :
3330 svn-build-artifacts :
9188 - name : Merge Artifacts
9289 uses : actions/upload-artifact/merge@v4
9390 with :
94- name : " svn-release-candidate-${{ inputs.VERSION }}rc${{ inputs.RC }} "
91+ name : " svn-release-candidate-${{ inputs.VERSION }}
9592 pattern: svn-release-candidate*
9693 delete-merged: true
You can’t perform that action at this time.
0 commit comments