1 name: Release (nightly)
10 if: vars.BUILD_NIGHTLY != ''
11 runs-on: ubuntu-latest
13 commit: ${{ steps.check_for_new_commits.outputs.commit }}
15 - uses: actions/checkout@v4
18 - name: Check for new commits
19 id: check_for_new_commits
27 ".github/workflows/build.yml"
29 echo "commit=$(git log --format=%H -1 --since="24 hours ago" -- "${relevant_files[@]}")" | tee "$GITHUB_OUTPUT"
32 needs: [check_nightly]
33 if: ${{ needs.check_nightly.outputs.commit }}
34 uses: ./.github/workflows/release.yml
40 packages: write # For package cache
41 actions: write # For cleaning up cache
42 id-token: write # mandatory for trusted publishing
47 if: vars.NIGHTLY_PYPI_PROJECT != ''
48 runs-on: ubuntu-latest
50 id-token: write # mandatory for trusted publishing
52 - name: Download artifacts
53 uses: actions/download-artifact@v4
57 - name: Publish to PyPI
58 uses: pypa/gh-action-pypi-publish@release/v1