Skip to content

Commit 79c83e0

Browse files
committed
Update publish_package.yml
Update publish-package workflow to run it when pushing changes to master branch. Activate the two steps have been commented out for testing purposes
1 parent 801f55c commit 79c83e0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/publish_package.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Deploy Python package
33
on:
44
push:
55
branches:
6-
675_scipy_integrate_cumtrapz_update
6+
master
77

88
jobs:
99
build-and-publish:
@@ -40,19 +40,19 @@ jobs:
4040
source "${CONDA_BASE}/etc/profile.d/conda.sh"
4141
conda activate coast
4242
python -m pip install dist/coast-*.tar.gz
43-
# - name: Publish Package to PyPi
44-
# shell: bash
45-
# env:
46-
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
47-
# run: |
48-
# ./publish.sh "https://upload.pypi.org/legacy/" "$PYPI_TOKEN"
43+
- name: Publish Package to PyPi
44+
shell: bash
45+
env:
46+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
47+
run: |
48+
./publish.sh "https://upload.pypi.org/legacy/" "$PYPI_TOKEN"
4949
- name: Generate Conda Metadata
5050
run: |
5151
./generate_conda_meta.sh
5252
cat conda/meta.yaml
53-
# - name: Publish Package to Anaconda
54-
# uses: fcakyon/conda-publish-action@v1.3
55-
# with:
56-
# subdir: "conda"
57-
# anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
58-
# platforms: 'win osx linux'
53+
- name: Publish Package to Anaconda
54+
uses: fcakyon/conda-publish-action@v1.3
55+
with:
56+
subdir: "conda"
57+
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
58+
platforms: 'win osx linux'

0 commit comments

Comments
 (0)