File tree Expand file tree Collapse file tree 3 files changed +103
-1
lines changed
Expand file tree Collapse file tree 3 files changed +103
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Durable Task Scheduler SDK (durabletask-azurefunctions) Dev Release
2+
3+ on :
4+ workflow_run :
5+ workflows : ["Durable Task Scheduler SDK (durabletask-azurefunctions)"]
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/azurefunctions-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-azurefunctions
33+ run : |
34+ sed -i 's/^version = "\(.*\)"/version = "\1.dev${{ github.run_number }}"/' pyproject.toml
35+
36+ - name : Build package from directory durabletask-azurefunctions
37+ working-directory : durabletask-azurefunctions
38+ run : |
39+ python -m build
40+
41+ - name : Check package
42+ working-directory : durabletask-azurefunctions
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_AZUREFUNCTIONS }} # Store your PyPI API token in GitHub Secrets
50+ working-directory : durabletask-azurefunctions
51+ run : |
52+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Durable Task Scheduler SDK (durabletask-azurefunctions) Experimental Release
2+
3+ on :
4+ push :
5+ branches-ignore :
6+ - main
7+ - release/*
8+
9+ jobs :
10+ publish-experimental :
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/azurefunctions-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-azurefunctions
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-azurefunctions
35+ working-directory : durabletask-azurefunctions
36+ run : |
37+ python -m build
38+
39+ - name : Check package
40+ working-directory : durabletask-azurefunctions
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_AZUREFUNCTIONS }} # Store your PyPI API token in GitHub Secrets
48+ working-directory : durabletask-azurefunctions
49+ run : |
50+ twine upload dist/*
Original file line number Diff line number Diff line change 8686 run : |
8787 pytest -m "dts" --verbose
8888
89- publish :
89+ publish-release :
9090 if : startsWith(github.ref, 'refs/tags/azurefunctions-v') # Only run if a matching tag is pushed
9191 needs : run-docker-tests
9292 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments