-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1.04 KB
/
pypi_publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
permissions:
id-token: write
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 and build package
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
python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1