-
-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (36 loc) · 1.03 KB
/
conda-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Upload Python Package to Conda
on:
push:
branches:
- publish-to-conda
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: base
python-version: 3.11
channels: conda-forge
allow-softlinks: true
channel-priority: flexible
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 }}