-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (38 loc) · 1.05 KB
/
python-publish.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
name: Merge to master and publish
on:
push:
branches:
- master
tags:
- '*'
jobs:
package:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Retrieve the source code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
with:
fetch-depth: 0
- name: Install dependencies
# https://github.com/conda-incubator/setup-miniconda
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
with:
channels: defaults
auto-activate-base: true
activate-environment: github.action
environment-file: environment.github.yml
- name: Conda Info
run: |
conda info
- name: Build Conda Package
run: |
mkdir build
./build-package.sh
- name: Upload to anaconda.org
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
anaconda --verbose --token $ANACONDA_TOKEN upload --user ae5-admin build/noarch/ae5-tools-*.tar.bz2 --force