Skip to content

Pandoc-Filter 0.0.1 #20

Pandoc-Filter 0.0.1

Pandoc-Filter 0.0.1 #20

name: Build and Upload Python Package
on:
release:
types: [published]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{runner.os}}-conda-${{env.CACHE_NUMBER}}-${{hashFiles('./scripts/etc/conda_env_dev_linux.yml')}}
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.12
activate-environment: pandoc_filter_dev
environment-file: ./scripts/etc/conda_env_dev_linux.yml
- shell: pwsh
run: |
pip install -U twine
python -m build
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}