Disable test-publish job #135
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: Packaging | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
release: | |
types: [created] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- run: python -m pip install build --user | |
- run: python -m build --sdist --wheel --outdir dist/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: package-build | |
path: dist/ | |
test-publish: | |
# Disable test-publish job | |
# See https://github.com/academic-innovation/django-lti/issues/101 | |
if: false | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- uses: actions/download-artifact@v4 | |
with: | |
name: package-build | |
path: dist/ | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ | |
skip-existing: true | |
verbose: true | |
publish: | |
if: github.event_name == 'release' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- uses: actions/download-artifact@v4 | |
with: | |
name: package-build | |
path: dist/ | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
verbose: true |