Skip to content

Commit 3574ae7

Browse files
committed
chore: nightly build tweaks
1 parent f1e5fb8 commit 3574ae7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/nightly-build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,27 @@ jobs:
9292
uv build "$dir" --out-dir dist
9393
done
9494
95+
- name: Sync versions to repo and push tag
96+
run: |
97+
git add packages/*/pyproject.toml
98+
git commit -m "chore: update package versions for nightly build ${{ env.NIGHTLY_VERSION }}"
99+
git tag "${{ env.NIGHTLY_VERSION }}"
100+
git push origin "${{ env.NIGHTLY_VERSION }}"
101+
env:
102+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
103+
NIGHTLY_VERSION: ${{ needs.check-for-changes.outputs.nightly-version }}
104+
95105
- name: Publish to PyPI
96106
run: |
97107
uv tool run twine upload dist/* --verbose
98108
env:
99109
TWINE_USERNAME: __token__
100-
TWINE_REPOSITORY_URL: ${{ vars.PYPI_REPOSITORY_URL || 'https://test.pypi.org/legacy/' }}
110+
TWINE_REPOSITORY_URL: ${{ vars.PYPI_URL || 'https://test.pypi.org/legacy/' }}
101111
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
102112

103113
- name: Deploy nightly documentation
104114
shell: bash
105115
run: uv run mike deploy --push nightly
106-
107-
- name: Create git tag for nightly
108-
run: |
109-
git tag "${{ needs.check-for-changes.outputs.nightly-version }}"
110-
git push origin "${{ needs.check-for-changes.outputs.nightly-version }}"
111116
env:
112117
GH_TOKEN: ${{ secrets.GH_TOKEN }}
113118

0 commit comments

Comments
 (0)