forked from payu-org/payu
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 1002 Bytes
/
CD.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
name: CD
on: [push, pull_request]
jobs:
conda:
name: build and deploy to conda
if: github.repository == 'payu-org/payu' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: 3.11
environment-file: conda/environment.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true
- name: Build and upload the conda package
uses: uibcdf/[email protected]
with:
meta_yaml_dir: conda
python-version: 3.11
user: accessnri
label: main
token: ${{ secrets.anaconda_token }}