Skip to content

Commit

Permalink
Try fetch-tags and upload_artifact pypi
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
hoxbro committed Dec 14, 2023
1 parent 3af394b commit 3ac5ced
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: "100"
fetch-tags: true
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
- name: Fetch unshallow
run: git fetch --prune --tags --unshallow -f
- name: conda setup
run: |
# pyct is for running setup.py
Expand Down Expand Up @@ -123,7 +122,7 @@ jobs:
run: |
conda install -c pyviz "pyctdev>=0.5"
doit ecosystem_setup
doit env_create $CHANS_DEV --python=$PYTHON_VERSION
doit env_create $CHANS_DEV --python=3.9
- name: env setup
run: |
conda activate test-environment
Expand All @@ -138,8 +137,14 @@ jobs:
run: |
conda activate test-environment
doit ecosystem=pip package_build --test-group=simple
- name: pip upload
if: github.event_name == 'push'
run: |
conda activate test-environment
doit ecosystem=pip package_upload -u $PPU -p $PPP -r $PYPI
- uses: actions/upload-artifact@v3
if: always()
with:
name: pip_build
path: dist
if-no-files-found: error
# - name: pip upload
# if: github.event_name == 'push'
# run: |
# conda activate test-environment
# doit ecosystem=pip package_upload -u $PPU -p $PPP -r $PYPI

0 comments on commit 3ac5ced

Please sign in to comment.