From caa9d470aba7ecd603253596107f4b8406e14a56 Mon Sep 17 00:00:00 2001 From: Ben Schroeter Date: Tue, 2 Jul 2024 13:44:42 +1000 Subject: [PATCH] Added CD for conda release. Secrets added to repo. Fixes #3 --- .github/workflows/cd.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..e6476db --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,28 @@ +name: Conda Publish + +on: + release: + types: [released] + +jobs: + conda_deployment: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: conda-incubator/setup-miniconda@v2 + with: + python-version: '3.9' + environment-file: .conda/build_env.yaml + auto-update-conda: false + auto-activate-base: false + show-channel-urls: true + - name: Build and upload the conda packages + uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0 + with: + python-version: '3.9' + meta_yaml_dir: .conda + user: ${{ secrets.ANACONDA_USER }} + label: main + token: ${{ secrets.ANACONDA_TOKEN }} \ No newline at end of file