Skip to content

Commit

Permalink
Deploy to anaconda
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed May 31, 2024
1 parent 866d117 commit b6ee6a1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build Recipes
on:
push:
branches: [ main ]
tags:
- '*'
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -266,3 +268,34 @@ jobs:
--rt ${{ matrix.test-config.runtime }} \
-k "not webworker and not cpp_exception and not triangulation and not cartopy" \
packages
release:
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment: deploy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: pyodide-env
use-mamba: true

- name: Download build artifact
uses: actions/download-artifact@v2
with:
name: repodata
path: ./repodata/

- name: Install anaconda-client
run: |
conda install -c conda-forge anaconda-client -y
- name: Upload wheels
run: |
anaconda -t ${{ secrets.ANACONDA_API_TOKEN }} upload --skip-existing ./repodata/*.whl

0 comments on commit b6ee6a1

Please sign in to comment.