Skip to content

Grade Package Upload #8

Grade Package Upload

Grade Package Upload #8

Workflow file for this run

name: Grade Package Upload
on:
# lets make this one manual invocation
# normally you would see a "release" trigger here or a "create: tags: ..." trigger because releases are usually tagged
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
# ends up here: https://pypi.org/project/CI-CD-Demo-Grade-Project/
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}