-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dae55e
commit dbca261
Showing
1 changed file
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |