From dbca26151ec257baeb6efc178acd16b58f027536 Mon Sep 17 00:00:00 2001 From: RJbalikian <46536937+RJbalikian@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:25:55 -0500 Subject: [PATCH] Update conda-manual-publish.yaml --- .github/workflows/conda-manual-publish.yaml | 44 +++++++-------------- 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/.github/workflows/conda-manual-publish.yaml b/.github/workflows/conda-manual-publish.yaml index fd939ab..28da8af 100644 --- a/.github/workflows/conda-manual-publish.yaml +++ b/.github/workflows/conda-manual-publish.yaml @@ -1,11 +1,10 @@ -name: Manually Publish to Conda-Forge +name: Publish to Conda-Forge on: - workflow_dispatch - - - - + release: + types: + - created + - edited jobs: publish: @@ -13,33 +12,20 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - # Activate the Conda environment - #- name: Activate Conda environment - # run: source activate sprit-env - + - name: Set up Conda uses: conda-incubator/setup-miniconda@v2 - with: - activate-environment: anaconda-client-env - environment-file: conda/environment.yml - auto-activate-base: false - + + - name: Create Conda Env. from environment file + uses: conda env create --file=conda/environments.yml + + - name: Activate conda environment + run: conda activate sprit-env + - name: Install Conda-Forge Client - run: conda activate sprit-env && conda install -c conda-forge conda-forge-ci-setup -y + run: conda install -c conda-forge conda-forge-ci-setup -y - name: Build and Upload Package env: CONDA_FORGE_TOKEN: ${{ secrets.CONDA_INITIALIZE }} - run: conda activate sprit-env && conda smithy ci - - - - - #- uses: actions/checkout@v2 - #- name: publish-to-conda - # uses: conda-forge/conda-publish-action@v1.3 - # with: - # subdir: 'conda' - # anacondatoken: ${{ secrets.CONDA_INITIALIZE }} - # platforms: 'win osx linux' + run: conda smithy ci # using smithy