-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.19 KB
/
distribute.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
52
53
54
55
name: Distribute to PyPI
on:
push:
tags:
- v*
jobs:
call-version-info-workflow:
uses: ASFHyP3/actions/.github/workflows/[email protected]
with:
conda_env_name: edlfs
python_version: '3.9'
distribute:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: mamba-org/provision-with-micromamba@v14
- name: Build distribution
id: build
run: |
python -m build
- name: upload to PyPI.org
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_PAK }}
verify-distribution:
runs-on: ubuntu-latest
needs:
- call-version-info-workflow
- distribute
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: mamba-org/provision-with-micromamba@v14
- name: Ensure edlfs v${{ needs.call-version-info-workflow.outputs.version }}} is pip installable
run: |
python -m pip install edlfs==${{ needs.call-version-info-workflow.outputs.version_tag }}