Skip to content

Commit 0f31521

Browse files
committed
Fix conda deploy workflow.
1 parent b0a4312 commit 0f31521

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
types: [created]
99

1010
jobs:
11-
run_linter:
12-
uses: ./.github/workflows/run_linter.yml
13-
1411
run_test_suite:
1512
uses: ./.github/workflows/run_test_suite.yml
1613

@@ -26,13 +23,13 @@ jobs:
2623
- name: Install dependencies
2724
run: |
2825
python -m pip install --upgrade pip
29-
pip install setuptools_scm setuptools wheel twine
26+
pip install "setuptools_scm>9.2" setuptools wheel twine
3027
- name: Build and publish
3128
env:
3229
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3330
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
3431
run: |
35-
python -m setuptools_scm
32+
python -m setuptools_scm --force-write-version-files
3633
python setup.py sdist bdist_wheel
3734
twine upload dist/*
3835
@@ -48,14 +45,14 @@ jobs:
4845
- name: Install dependencies
4946
run: |
5047
conda install -y anaconda-client conda-build
51-
pip install setuptools_scm
48+
pip install "setuptools_scm>9.2"
5249
- name: Build and publish
50+
env:
51+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
5352
run: |
5453
conda config --set anaconda_upload yes
5554
conda config --append channels pytorch
5655
conda config --append channels gpytorch
5756
conda config --append channels conda-forge
58-
/usr/share/miniconda/bin/anaconda login --username ${{ secrets.CONDA_USERNAME }} --password ${{ secrets.CONDA_PASSWORD }}
59-
python -m setuptools_scm
57+
python -m setuptools_scm --force-write-version-files
6058
conda build .conda
61-
/usr/share/miniconda/bin/anaconda logout

0 commit comments

Comments
 (0)