Skip to content

Commit

Permalink
Fix: Publish to conda github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kayjan committed Oct 26, 2023
1 parent 38924b8 commit 0e09f7d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/conda-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,37 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
# strategy:
# matrix:
# python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
steps:
- uses: actions/checkout@v3
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-activate-base: false
auto-update-conda: true
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: conda-env
environment-file: conda/conda-env.yml
show-channel-urls: true
use-only-tar-bz2: true
- name: Install conda-forge CI
run: conda install -c conda-forge conda-smithy conda-forge-pinning
- name: Build package
run: conda-smithy rerender
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Re-render recipe"
git push
# - name: publish-to-conda
# uses: maxibor/[email protected]
# - name: Set up Conda
# uses: conda-incubator/setup-miniconda@v2
# with:
# subDir: "conda"
# AnacondaToken: ${{ secrets.CONDA_TOKEN }}
# python-version: ${{ matrix.python-version }}
# auto-activate-base: false
# auto-update-conda: true
# miniforge-variant: Mambaforge
# miniforge-version: latest
# activate-environment: conda-env
# environment-file: conda/conda-env.yml
# show-channel-urls: true
# use-only-tar-bz2: true
# - name: Install conda-forge CI
# run: conda install -c conda-forge conda-smithy conda-forge-pinning
# - name: Build package
# run: conda-smithy rerender
# - name: Commit changes
# run: |
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git add -A
# git commit -m "Re-render recipe"
# git push
- name: publish-to-conda
uses: fcakyon/[email protected]
with:
subdir: "conda"
anacondatoken: ${{ secrets.CONDA_TOKEN }}
platforms: "win osx linux"
6 changes: 6 additions & 0 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
python:
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11

0 comments on commit 0e09f7d

Please sign in to comment.