-
Notifications
You must be signed in to change notification settings - Fork 72
30 lines (29 loc) · 789 Bytes
/
Copy pathci.yaml
File metadata and controls
30 lines (29 loc) · 789 Bytes
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
name: Build and upload to PyPI
on:
push:
pull_request:
release:
types: [published]
jobs:
build_artifacts:
name: Build artifacts
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v6
- name: Fetch full git history
run: git fetch --prune --unshallow
- name: Set up Conda env
uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476
with:
environment-file: environment.yml
cache-environment: true
- shell: bash -el {0}
run:
python -m build
- uses: pypa/gh-action-pypi-publish@v1.13.0
if: github.event_name == 'release'
with:
user: __token__
password: ${{ secrets.PYPI_RELEASE_TOKEN }}