-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 982 Bytes
/
release.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
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:
python-version: '3.10'
channels: conda-forge,bioconda
channel-priority: strict
activate-environment: bactopia-py
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