Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/durabletask-azuremanaged-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Durable Task Scheduler SDK (durabletask-azuremanaged) Dev Release

on:
workflow_run:
workflows: ["Durable Task Scheduler SDK (durabletask-azuremanaged)"]
types:
- completed
branches:
- main

jobs:
publish-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/azuremanaged-v}" >> $GITHUB_ENV # Extract version from the tag

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14" # Adjust Python version as needed

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Append dev to version in pyproject.toml
working-directory: durabletask-azuremanaged
run: |
sed -i 's/^version = "\(.*\)"/version = "\1.dev${{ github.run_number }}"/' pyproject.toml

- name: Build package from directory durabletask-azuremanaged
working-directory: durabletask-azuremanaged
run: |
python -m build

- name: Check package
working-directory: durabletask-azuremanaged
run: |
twine check dist/*

- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN_AZUREMANAGED }} # Store your PyPI API token in GitHub Secrets
working-directory: durabletask-azuremanaged
run: |
twine upload dist/*
50 changes: 50 additions & 0 deletions .github/workflows/durabletask-azuremanaged-experimental.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Durable Task Scheduler SDK (durabletask-azuremanaged) Experimental Release

on:
push:
branches-ignore:
- main
- release/*

jobs:
publish-experimental:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/azuremanaged-v}" >> $GITHUB_ENV # Extract version from the tag

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14" # Adjust Python version as needed

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Change the version in pyproject.toml to 0.0.0dev{github.run_number}
working-directory: durabletask-azuremanaged
run: |
sed -i 's/^version = ".*"/version = "0.0.0.dev${{ github.run_number }}"/' pyproject.toml

- name: Build package from directory durabletask-azuremanaged
working-directory: durabletask-azuremanaged
run: |
python -m build

- name: Check package
working-directory: durabletask-azuremanaged
run: |
twine check dist/*

- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN_AZUREMANAGED }} # Store your PyPI API token in GitHub Secrets
working-directory: durabletask-azuremanaged
run: |
twine upload dist/*
2 changes: 1 addition & 1 deletion .github/workflows/durabletask-azuremanaged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
run: |
pytest -m "dts" --verbose

publish:
publish-release:
if: startsWith(github.ref, 'refs/tags/azuremanaged-v') # Only run if a matching tag is pushed
needs: run-docker-tests
runs-on: ubuntu-latest
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/durabletask-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Durable Task SDK (durabletask) Dev Release

on:
workflow_run:
workflows: ["Durable Task SDK (durabletask)"]
types:
- completed
branches:
- main

jobs:
publish-dev:
# needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV # Extract version from the tag

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14" # Adjust Python version as needed

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Append dev to version in pyproject.toml
run: |
sed -i 's/^version = "\(.*\)"/version = "\1.dev${{ github.run_number }}"/' pyproject.toml

- name: Build package from root directory
run: |
python -m build

- name: Check package
run: |
twine check dist/*

- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
run: |
twine upload dist/*
47 changes: 47 additions & 0 deletions .github/workflows/durabletask-experiment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Durable Task SDK (durabletask) Experimental Release

on:
push:
branches-ignore:
- main
- release/*

jobs:
publish-experimental:
# needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV # Extract version from the tag

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14" # Adjust Python version as needed

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Change the version in pyproject.toml to 0.0.0dev{github.run_number}
run: |
sed -i 's/^version = ".*"/version = "0.0.0.dev${{ github.run_number }}"/' pyproject.toml

- name: Build package from root directory
run: |
python -m build

- name: Check package
run: |
twine check dist/*

- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
run: |
twine upload dist/*
6 changes: 3 additions & 3 deletions .github/workflows/durabletask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Durable Task SDK (durabletask)

on:
push:
branches:
branches:
- "main"
tags:
- "v*" # Only run for tags starting with "v"
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
durabletask-go --port 4001 &
pytest -m "e2e and not dts" --verbose

publish:
publish-release:
if: startsWith(github.ref, 'refs/tags/v') # Only run if a matching tag is pushed
needs: run-tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -105,4 +105,4 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # Store your PyPI API token in GitHub Secrets
run: |
twine upload dist/*
twine upload dist/*
Loading