Skip to content

Commit 3b4238f

Browse files
authored
Merge pull request #85 from scipp/anaconda_not_found
Fix anaconda not found
2 parents 29a11f2 + 37a86c9 commit 3b4238f

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/build.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build
33
on:
44
workflow_call:
55

6+
defaults:
7+
run:
8+
shell: bash -l {0} # required for conda env
9+
610
jobs:
711
formatting:
812
runs-on: ubuntu-latest

.github/workflows/deploy.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@ name: Deploy
22

33
on:
44
workflow_call:
5+
secrets:
6+
anaconda_token:
7+
required: true
8+
9+
defaults:
10+
run:
11+
shell: bash -l {0} # required for conda env
512

613
jobs:
714
deploy:
815
runs-on: ubuntu-latest
916
env:
1017
conda_label: ${{ startsWith(github.ref, 'refs/tags/') && 'main' || 'dev' }}
1118
steps:
12-
- uses: actions/checkout@v2 # Need to checkout repo so github-pages-deploy-action works
13-
- uses: actions/download-artifact@v2
1419
- uses: conda-incubator/setup-miniconda@v2
1520
- run: conda install -c conda-forge --yes anaconda-client
16-
- run: anaconda --token ${{ secrets.ANACONDATOKEN }} upload --user scipp --label ${{ env.conda_label }} $(ls conda-package-*/*/*.tar.bz2)
21+
- uses: actions/checkout@v2 # Need to checkout repo so github-pages-deploy-action works
22+
- uses: actions/download-artifact@v2
23+
- run: anaconda --token ${{ secrets.anaconda_token }} upload --user scipp --label ${{ env.conda_label }} $(ls conda-package-*/*/*.tar.bz2)
1724

1825
- uses: JamesIves/[email protected]
1926
with:

.github/workflows/weekly_and_release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ jobs:
1414
deploy:
1515
needs: build
1616
uses: scipp/ess/.github/workflows/deploy.yml@main
17+
secrets:
18+
anaconda_token: ${{ secrets.ANACONDATOKEN }}

0 commit comments

Comments
 (0)