-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (49 loc) · 1.36 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: PyPI Release
on:
workflow_dispatch:
release:
types: [ published ]
jobs:
upload_pypi:
name: Building Package
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # full history for setuptools_scm
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true
channels: conda-forge,bioconda
channel-priority: strict
environment-file: environment.yaml
python-version: ${{ matrix.python-version }}
activate-environment: ymp
- name: Install Twine
run: |
pip install --user twine
- name: Install
run: |
pip install --no-deps .
- name: Build Source Package
run: |
./setup.py sdist
- name: Build Wheel
run:
./setup.py bdist_wheel
- name: Publish
if: startsWith(github.event.ref, 'refs/tags') && github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
#repository_url: https://test.pypi.org/legacy/