Skip to content

Commit 2202da6

Browse files
authored
Update main.yml
1 parent 48ce03d commit 2202da6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
shell: bash -l {0}
2929
run: |
3030
conda env create --file environment.yml --name cool-graph-env
31-
conda activate cool-graph-env
32-
# Ensure recent versions of pip and setuptools
33-
python -m pip install --upgrade pip setuptools wheel twine
31+
source activate cool-graph-env
32+
# Ensure recent versions of pip, setuptools, and install build and twine
33+
python -m pip install --upgrade pip setuptools wheel
34+
python -m pip install build twine
3435
3536
release:
3637
runs-on: ubuntu-latest
@@ -50,15 +51,17 @@ jobs:
5051
shell: bash -l {0}
5152
run: |
5253
conda env create --file environment.yml --name cool-graph-env
53-
conda activate cool-graph-env
54-
python -m pip install --upgrade pip setuptools wheel twine
54+
source activate cool-graph-env
55+
# Ensure recent versions of pip, setuptools, and install build and twine
56+
python -m pip install --upgrade pip setuptools wheel
57+
python -m pip install build twine
5558
5659
- name: Build and publish package
5760
shell: bash -l {0}
5861
env:
5962
TWINE_USERNAME: __token__
6063
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
6164
run: |
62-
conda activate cool-graph-env
65+
source activate cool-graph-env
6366
python -m build
6467
python -m twine upload dist/*

0 commit comments

Comments
 (0)