Skip to content

Commit

Permalink
Update conda-manual-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RJbalikian authored Oct 3, 2023
1 parent 8dae55e commit dbca261
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions .github/workflows/conda-manual-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,31 @@
name: Manually Publish to Conda-Forge
name: Publish to Conda-Forge

on:
workflow_dispatch




release:
types:
- created
- edited

jobs:
publish:
runs-on: ubuntu-latest
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

0 comments on commit dbca261

Please sign in to comment.