Skip to content

update workflow

update workflow #10

Workflow file for this run

name: Upload Python Package to PYPI
on:
release:
types: [created]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.11
channels: conda-forge
auto-update-conda: true
miniconda-version: "latest"
activate-environment: pypi
- name: Set up Conda environment
shell: bash -l {0}
run: |
conda config --set always_yes yes --set changeps1 no
conda install -q -n pypi python=3.11 \
setuptools \
pypandoc \
build \
twine
conda list -n pypi
- name: Build and publish
permissions:
id-token: write
shell: bash -l {0}
run: |
conda env list
python -m build .
uses: pypa/gh-action-pypi-publish@release/v1
with:

Check failure on line 48 in .github/workflows/pypi_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi_publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
skip-existing: true