Upload Test File #1
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: Upload Test File | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| file_path: | |
| description: 'Path to the file to upload' | |
| required: true | |
| default: 'dist/c2pa_python-0.4.0-py3-none-macosx_11_0_arm64.whl' | |
| jobs: | |
| upload: | |
| name: Upload Test File to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Twine | |
| run: pip install twine | |
| - name: Upload file to PyPI | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
| run: | | |
| twine upload --non-interactive --skip-existing ${{ github.event.inputs.file_path }} |