Publish pending packages #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish pending packages | |
| on: | |
| schedule: | |
| # Late UTC day: leave PyPI's daily new-project quota free for manual | |
| # publishing during US working hours, and sweep up whatever remains. | |
| - cron: "17 23 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v10.0.1 | |
| with: | |
| python-version: "3.13" | |
| - run: uv sync --all-packages | |
| - name: Publish families not yet on PyPI | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
| run: uv run fontpkg-gen publish-pending --state state.json --out build --priority-file families.txt | |
| - name: Commit updated state | |
| run: | | |
| if ! git diff --quiet state.json; then | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add state.json | |
| git commit -m "Mark newly published packages" | |
| git push | |
| fi |