diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a33339e..906b70f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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)