Skip to content

Commit

Permalink
Update nightly releases in Github
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 594423957
  • Loading branch information
fineguy authored and The TensorFlow Datasets Authors committed Dec 29, 2023
1 parent 38953e1 commit 67936d5
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,21 @@ on:
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:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.git-ref }}

- name: Setup Python.
uses: actions/setup-python@v2
- name: Publish the package
uses: etils-actions/pypi-auto-publish@v1
with:
python-version: '3.10'

- name: Install deps.
run: pip install setuptools wheel twine

- name: Create the source distribution and build the wheels.
run: |
python setup.py sdist --nightly
python setup.py bdist_wheel --nightly
- name: Publish the package.
run: |
twine check dist/*
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.NIGHTLY_PYPI_PASSWORD }}
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 }}

0 comments on commit 67936d5

Please sign in to comment.