Skip to content

CodeMD v0.0.2b

CodeMD v0.0.2b #7

Workflow file for this run

name: Upload Python Package to PyPI
on:
release:
types: [ created ]
jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/codemd
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: 'pip'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install -r requirements.txt
- name: Build package
run: python -m build
- name: Test built package
run: |
twine check dist/*
pip install dist/*.whl
codemd --help
- name: Verify environment
run: |
echo "Running in environment: $GITHUB_ENVIRONMENT"
echo "Repository: $GITHUB_REPOSITORY"
echo "Workflow: $GITHUB_WORKFLOW"
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1