File tree Expand file tree Collapse file tree 5 files changed +201
-3
lines changed
Expand file tree Collapse file tree 5 files changed +201
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Durable Task Scheduler SDK (durabletask-azuremanaged) Dev Release
2+
3+ on :
4+ workflow_run :
5+ workflows : ["Durable Task Scheduler SDK (durabletask-azuremanaged)"]
6+ types :
7+ - completed
8+ branches :
9+ - main
10+
11+ jobs :
12+ publish-dev :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Extract version from tag
19+ run : echo "VERSION=${GITHUB_REF#refs/tags/azuremanaged-v}" >> $GITHUB_ENV # Extract version from the tag
20+
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : " 3.14" # Adjust Python version as needed
25+
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip
29+ pip install build twine
30+
31+ - name : Append dev to version in pyproject.toml
32+ working-directory : durabletask-azuremanaged
33+ run : |
34+ sed -i 's/^version = "\(.*\)"/version = "\1.dev${{ github.run_number }}"/' pyproject.toml
35+
36+ - name : Build package from directory durabletask-azuremanaged
37+ working-directory : durabletask-azuremanaged
38+ run : |
39+ python -m build
40+
41+ - name : Check package
42+ working-directory : durabletask-azuremanaged
43+ run : |
44+ twine check dist/*
45+
46+ - name : Publish package to PyPI
47+ env :
48+ TWINE_USERNAME : __token__
49+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN_AZUREMANAGED }} # Store your PyPI API token in GitHub Secrets
50+ working-directory : durabletask-azuremanaged
51+ run : |
52+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Durable Task Scheduler SDK (durabletask-azuremanaged) Experimental Release
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - main
7+ - release/*
8+
9+ jobs :
10+ publish-dev :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Extract version from tag
17+ run : echo "VERSION=${GITHUB_REF#refs/tags/azuremanaged-v}" >> $GITHUB_ENV # Extract version from the tag
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.14" # Adjust Python version as needed
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install build twine
28+
29+ - name : Change the version in pyproject.toml to 0.0.0dev{github.run_number}
30+ working-directory : durabletask-azuremanaged
31+ run : |
32+ sed -i 's/^version = ".*"/version = "0.0.0.dev${{ github.run_number }}"/' pyproject.toml
33+
34+ - name : Build package from directory durabletask-azuremanaged
35+ working-directory : durabletask-azuremanaged
36+ run : |
37+ python -m build
38+
39+ - name : Check package
40+ working-directory : durabletask-azuremanaged
41+ run : |
42+ twine check dist/*
43+
44+ - name : Publish package to PyPI
45+ env :
46+ TWINE_USERNAME : __token__
47+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN_AZUREMANAGED }} # Store your PyPI API token in GitHub Secrets
48+ working-directory : durabletask-azuremanaged
49+ run : |
50+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Durable Task SDK (durabletask) Dev Release
2+
3+ on :
4+ workflow_run :
5+ workflows : ["Durable Task SDK (durabletask)"]
6+ types :
7+ - completed
8+ branches :
9+ - main
10+
11+ jobs :
12+ publish-dev :
13+ # needs: run-tests
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Extract version from tag
20+ run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV # Extract version from the tag
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : " 3.14" # Adjust Python version as needed
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install build twine
31+
32+ - name : Append dev to version in pyproject.toml
33+ run : |
34+ sed -i 's/^version = "\(.*\)"/version = "\1.dev${{ github.run_number }}"/' pyproject.toml
35+
36+ - name : Build package from root directory
37+ run : |
38+ python -m build
39+
40+ - name : Check package
41+ run : |
42+ twine check dist/*
43+
44+ - name : Publish package to PyPI
45+ env :
46+ TWINE_USERNAME : __token__
47+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
48+ run : |
49+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Durable Task SDK (durabletask) Experimental Release
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - main
7+ - release/*
8+
9+ jobs :
10+ publish-experimental :
11+ # needs: run-tests
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Extract version from tag
18+ run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV # Extract version from the tag
19+
20+ - name : Set up Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.14" # Adjust Python version as needed
24+
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install build twine
29+
30+ - name : Change the version in pyproject.toml to 0.0.0dev{github.run_number}
31+ run : |
32+ sed -i 's/^version = ".*"/version = "0.0.0.dev${{ github.run_number }}"/' pyproject.toml
33+
34+ - name : Build package from root directory
35+ run : |
36+ python -m build
37+
38+ - name : Check package
39+ run : |
40+ twine check dist/*
41+
42+ - name : Publish package to PyPI
43+ env :
44+ TWINE_USERNAME : __token__
45+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
46+ run : |
47+ twine upload dist/*
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Durable Task SDK (durabletask)
22
33on :
44 push :
5- branches :
5+ branches :
66 - " main"
77 tags :
88 - " v*" # Only run for tags starting with "v"
7171 durabletask-go --port 4001 &
7272 pytest -m "e2e and not dts" --verbose
7373
74- publish :
74+ publish-release :
7575 if : startsWith(github.ref, 'refs/tags/v') # Only run if a matching tag is pushed
7676 needs : run-tests
7777 runs-on : ubuntu-latest
@@ -105,4 +105,4 @@ jobs:
105105 TWINE_USERNAME : __token__
106106 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
107107 run : |
108- twine upload dist/*
108+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments