File tree Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Expand file tree Collapse file tree 1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change 25
25
workflow_dispatch : # Allows manual triggering
26
26
27
27
jobs :
28
+ set-version :
29
+ runs-on : ubuntu-latest
30
+ outputs :
31
+ VERSION : ${{ steps.set-version.outputs.VERSION }}
32
+ RC : ${{ steps.set-version.outputs.RC }}
33
+ steps :
34
+ - uses : actions/checkout@v4
35
+ with :
36
+ fetch-depth : 1
37
+
38
+ - uses : actions/setup-python@v5
39
+ with :
40
+ python-version : 3.12
41
+
42
+ - name : Install Poetry
43
+ run : make install-poetry
44
+
45
+ - name : Extract version and rc
46
+ id : set-version
47
+ run : |
48
+ VERSION=$(poetry version --short)
49
+ RC="$(date +%Y%m%d)"
50
+ echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
51
+ echo "RC=$RC" >> "$GITHUB_OUTPUT"
52
+
53
+ - name : Debug version and rc
54
+ run : echo "Publishing version ${{ steps.set-version.outputs.VERSION }}rc${{ steps.set-version.outputs.RC }}"
55
+
28
56
nightly-build :
29
- uses : ./.github/workflows/pypi-build-artifacts.yml # Reference the PyPI build workflow
57
+ needs : set-version
58
+ uses : ./.github/workflows/pypi-build-artifacts.yml
30
59
with :
31
- VERSION : " 0.0.0 " # Generate nightly version
32
- RC : " 1 " # Reset RC for nightly builds
60
+ version : ${{ needs.set-version.outputs.VERSION }} # i.e. 0.9.0
61
+ rc : ${{ needs.set-version.outputs.RC }} # i.e. 20250203
33
62
34
63
testpypi-publish :
35
64
name : Publish to TestPypi
56
85
with :
57
86
repository-url : https://test.pypi.org/legacy/
58
87
skip-existing : true
88
+ verbose : true
You can’t perform that action at this time.
0 commit comments