Update nightly releases in Github #1049
Workflow file for this run
This file contains 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 tfds-nightly to PyPI | |
on: | |
# Event triggered daily at 00:30 am UTC | |
schedule: | |
- cron: '30 0 * * *' | |
# Event manually triggered (in the Github UI) | |
workflow_dispatch: | |
inputs: | |
git-ref: | |
description: Git ref (e.g. SHA or tag) (Optional) | |
default: "" | |
required: false | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
publish-job: | |
# Prevents action from running on forks. | |
if: github.repository == 'tensorflow/datasets' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Publish the package | |
uses: etils-actions/pypi-auto-publish@v1 | |
with: | |
pypi-token: ${{ secrets.NIGHTLY_PYPI_PASSWORD }} | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | |
parse-changelog: true | |
pkg-name: tfds-nightly | |
git-ref: ${{ github.event.inputs.git-ref }} |