-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.38 KB
/
deploy_conda_nightly.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
name: Deploy mvesuvio nightly
on: push
# workflow_run:
# workflows: ["mvesuvio nightly build"]
# branches: [main]
# types:
# - completed
jobs:
build_conda_and_upload:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout mvesuvio
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Check for changes since last build
run: |
echo "recentCommits=$(test -z $(git log --since="yesterday" -1 --format=%h) && echo false || echo true)" >> $GITHUB_ENV
- name: Setup Miniconda
# if: ${{ env.recentCommits == 'true'}}
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: vesuvio-env
environment-file: environment.yml
auto-activate-base: false
# - name: Build mvesuvio nightly conda package
# if: ${{ env.recentCommits == 'true'}}
# uses: ./.github/actions/publish-conda-package
# with:
# label: nightly
# token: ${{ secrets.ANACONDA_API_TOKEN }}
- name: Build mvesuvio nightly PyPI package
# if: ${{ env.recentCommits == 'true'}}
uses: ./.github/actions/publish-pypi-package
with:
token: ${{ secrets.PYPI_API_TOKEN }}