Skip to content

Commit

Permalink
Merge pull request #85 from scipp/anaconda_not_found
Browse files Browse the repository at this point in the history
Fix anaconda not found
  • Loading branch information
nvaytet authored Jan 18, 2022
2 parents 29a11f2 + 37a86c9 commit 3b4238f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Build
on:
workflow_call:

defaults:
run:
shell: bash -l {0} # required for conda env

jobs:
formatting:
runs-on: ubuntu-latest
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ name: Deploy

on:
workflow_call:
secrets:
anaconda_token:
required: true

defaults:
run:
shell: bash -l {0} # required for conda env

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

- uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/weekly_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
deploy:
needs: build
uses: scipp/ess/.github/workflows/deploy.yml@main
secrets:
anaconda_token: ${{ secrets.ANACONDATOKEN }}

0 comments on commit 3b4238f

Please sign in to comment.