Skip to content

Commit 7cbdbac

Browse files
authored
Update release_conda.yml
1 parent 44ba870 commit 7cbdbac

File tree

1 file changed

+35
-34
lines changed

1 file changed

+35
-34
lines changed

.github/workflows/release_conda.yml

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,38 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7-
8-
condapublish:
9-
strategy:
10-
matrix:
11-
os: [ubuntu-22.04]
12-
pyv: ["3.10"]
13-
max-parallel: 5
14-
runs-on: ${{ matrix.os }}
15-
permissions:
16-
id-token: write
17-
contents: write
18-
deployments: write
19-
statuses: write
20-
actions: write
21-
checks: read
22-
steps:
23-
- uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
27-
- name: Set up Python ${{ matrix.pyv }}
28-
run: |
29-
conda install -y python=${{ matrix.pyv }}
30-
31-
- name: Add conda to system path
32-
run: |
33-
# $CONDA is an environment variable pointing to the root of the miniconda directory
34-
echo $CONDA/bin >> $GITHUB_PATH
35-
36-
- name: publish-to-conda
37-
uses: fcakyon/conda-publish-action@v1.3
38-
with:
39-
subdir: '.github/conda'
40-
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
7+
8+
jobs:
9+
condapublish:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-22.04]
13+
pyv: ["3.10"]
14+
max-parallel: 5
15+
runs-on: ${{ matrix.os }}
16+
permissions:
17+
id-token: write
18+
contents: write
19+
deployments: write
20+
statuses: write
21+
actions: write
22+
checks: read
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Set up Python ${{ matrix.pyv }}
29+
run: |
30+
conda install -y python=${{ matrix.pyv }}
31+
32+
- name: Add conda to system path
33+
run: |
34+
# $CONDA is an environment variable pointing to the root of the miniconda directory
35+
echo $CONDA/bin >> $GITHUB_PATH
36+
37+
- name: publish-to-conda
38+
uses: fcakyon/conda-publish-action@v1.3
39+
with:
40+
subdir: '.github/conda'
41+
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}

0 commit comments

Comments
 (0)