-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 910 Bytes
/
releases.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
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: taiki-e/install-action@just
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,bioconda
activate-environment: camlhmp
environment-file: environment.yml
auto-update-conda: true
- name: Install project
run: |
python -m pip install -U pip
just install
- name: Build a binary wheel and a source tarball
run: just build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1