-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (40 loc) · 982 Bytes
/
build.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
name: build
on:
release:
types:
- released
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
build:
name: build package
runs-on: ubuntu-latest
steps:
- uses: mamba-org/setup-micromamba@v1
with:
condarc: |
channels:
- conda-forge
environment-name: build
create-args: >-
build
cache-downloads: true
cache-environment: true
init-shell: >-
bash
- uses: actions/checkout@v4
- run: build
- uses: actions/upload-artifact@v4
with:
name: stormevents
path: dist/
- if: github.event_name == 'release' && github.event.action == 'released'
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}