Skip to content

Fix: Publish to conda github action #8

Fix: Publish to conda github action

Fix: Publish to conda github action #8

Workflow file for this run

name: Upload Python Package to Conda
on:
push:
branches:
- publish-to-conda
jobs:
publish:
runs-on: ubuntu-latest
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]
# with:
# subDir: "conda"
# AnacondaToken: ${{ secrets.CONDA_TOKEN }}