Skip to content

Commit

Permalink
Remove hatch upload and rename steps"
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 29, 2023
1 parent 17a5fb1 commit 2042a86
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,18 @@ jobs:
with:
python-version: "3.10"
channels: pyviz/label/dev,conda-forge
- name: Install conda-build and hatch
- name: Install packages
run: |
conda install -y conda-build hatch anaconda-client
- name: Build conda package
run: |
bash scripts/build_conda.sh
- name: Publish
if: github.event_name == 'release' && github.event.action == 'published'
run: hatch publish --user __token__ --auth ${{ secrets.pypi_password }}
- name: conda dev upload
- name: Publish conda dev
if: (github.event_name == 'release' && github.event.action == 'published' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
run: |
FILE=$(VERSION=`hatch version` conda build --output conda/recipe)
anaconda --token $CONDA_UPLOAD_TOKEN upload --user pyviz --label=dev $FILE
- name: conda main upload
- name: Publish conda main
if: (github.event_name == 'release' && github.event.action == 'published' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
run: |
FILE=$(VERSION=`hatch version` conda build --output conda/recipe)
Expand Down

0 comments on commit 2042a86

Please sign in to comment.