Publish Metaflow Huggingface Datasets (Manual) #3
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 Metaflow Huggingface Datasets (Manual) | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@152ba7c4dd6521b8e9c93f72d362ce03bf6c4f20 # v1.2.3 | |
with: | |
python-version: '3.x' | |
- name: Install Python 3.x dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install setuptools wheel twine | |
- name: Build metaflow-card-hf-dataset package | |
run: | | |
python3 setup.py sdist bdist_wheel --universal | |
- name: Publish metaflow-card-hf-dataset package | |
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 #v1.8.14 | |
with: | |
user: __token__ | |
password: ${{ secrets.TWINE_PASSWORD }} |