Skip to content

Commit d6b270f

Browse files
committed
ops: config conda upload
1 parent 831e891 commit d6b270f

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.github/workflows/workflow.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,11 @@ jobs:
4747
run: make lint
4848

4949
- name: Coverage
50-
env:
51-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # defined in repository
5250
run: |
5351
make coverage
5452
curl -Os https://uploader.codecov.io/latest/linux/codecov
5553
chmod +x codecov
56-
./codecov -t ${CODECOV_TOKEN}
54+
./codecov -t ${{ secrets.CODECOV_TOKEN }}
5755
5856
publish:
5957
needs: [tests, code_quality]
@@ -82,20 +80,19 @@ jobs:
8280
if: github.ref == 'refs/heads/master'
8381
uses: pypa/gh-action-pypi-publish@release/v1.5
8482
with:
85-
password: ${{ secrets.TEST_PYPI_TOKEN }} # defined in repository
83+
password: ${{ secrets.TEST_PYPI_TOKEN }}
8684
repository_url: https://test.pypi.org/legacy/
8785
skip_existing: true
8886

8987
# - name: Publish to PyPI
9088
# if: startsWith(github.ref, 'refs/tags')
9189
# uses: pypa/gh-action-pypi-publish@release/v1.5
9290
# with:
93-
# password: ${{ secrets.PYPI_TOKEN }} # defined in repository
91+
# password: ${{ secrets.PYPI_TOKEN }}
9492

9593
- name: Publish to conda
96-
if: startsWith(github.ref, 'refs/tags')
97-
uses: MichaelsJP/[email protected]
98-
with:
99-
subDir: '.conda/fastaparser'
100-
AnacondaToken: ${{ secrets.CONDA_TOKEN }}
101-
platforms: 'win-64,linux-aarch64,osx-64'
94+
run: |
95+
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh -O miniconda.sh
96+
bash ~/miniconda.sh -b -p /miniconda
97+
miniconda/conda config --set anaconda_upload yes
98+
miniconda/conda build .conda --token ${{ secrets.CONDA_TOKEN }} --strict-verify

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@
88

99
# VirtualEnv
1010
venv/
11+
12+
# build
13+
.build*
14+
build/
15+
dist/
16+
fastaparser.egg-info/

Makefile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help install-dependencies install-testingdependencies test lint coverage docs-test build build-test release clean clean-pyc clean-tests clean-coverage clean-build conda-install-dependencies conda-skeleton conda-config-upload conda-build conda-clean-build
1+
.PHONY: help install-dependencies install-testingdependencies test lint coverage docs-test build build-test release clean clean-pyc clean-tests clean-coverage clean-build conda-install-dependencies conda-skeleton cconda-build-and-upload conda-clean-build
22

33
help:
44
@echo ""
@@ -20,8 +20,7 @@ help:
2020
@echo ""
2121
@echo "conda-install-dependencies installs conda build dependencies"
2222
@echo "conda-skeleton creates skeleton conda package recipe"
23-
@echo "conda-config-upload configures conda to upload to anaconda cloud"
24-
@echo "conda-build builds conda package"
23+
@echo "conda-build-and-upload builds conda package and uploads to anaconda cloud"
2524
@echo ""
2625
@echo "conda-clean-build removes conda build artifacts"
2726

@@ -80,11 +79,10 @@ conda-install-dependencies:
8079
conda-skeleton:
8180
conda skeleton pypi fastaparser --output-dir .conda
8281

83-
conda-config-upload:
82+
conda-build-and-upload:
8483
conda config --set anaconda_upload yes
85-
86-
conda-build:
87-
conda build .conda --strict-verify
84+
conda build .conda --strict-verify --output-folder .build_conda
8885

8986
conda-clean-build:
9087
conda build purge
88+
rm -rf .build_conda/

0 commit comments

Comments
 (0)