Skip to content

Disable test-publish job #135

Disable test-publish job

Disable test-publish job #135

Workflow file for this run

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