Skip to content

Commit

Permalink
Debug release issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Oct 3, 2023
1 parent 4377095 commit 36c79fb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 21 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/deploy_release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
name: Deploy release
on:
push:
tags: # run only on new tags that follow semver MAJOR.MINOR.PATCH
- '[0-9]+.[0-9]+.[0-9]+'
branches:
- dev
tags-ignore: # exclude tags created by "ci_addons publish_github_release"
- 'latest'
- 'latest-tmp'
pull_request:
# push:
# tags: # run only on new tags that follow semver MAJOR.MINOR.PATCH
# - '[0-9]+.[0-9]+.[0-9]+'

jobs:
deploy-release:
Expand Down Expand Up @@ -30,6 +37,10 @@ jobs:
run: |
tox -e py311-upgraded
- name: Test
run: |
git status
- name: Build wheel and source distribution
run: |
tox -e build-py311-upgraded
Expand All @@ -43,16 +54,16 @@ jobs:
run: |
tox -e wheelinstall --recreate --installpkg dist/*.tar.gz
- name: Upload wheel and source distributions to PyPI
run: |
python -m pip install twine
ls -1 dist
# twine upload --repository-url https://test.pypi.org/legacy/ -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/*
twine upload -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/*
# - name: Upload wheel and source distributions to PyPI
# run: |
# python -m pip install twine
# ls -1 dist
# # twine upload --repository-url https://test.pypi.org/legacy/ -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/*
# twine upload -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/*

- name: Publish wheel and source distributions as a GitHub release
run: |
python -m pip install "githubrelease>=1.5.9"
githubrelease --github-token ${{ secrets.BOT_GITHUB_TOKEN }} release hdmf-dev/hdmf \
create ${{ github.ref_name }} --name ${{ github.ref_name }} \
--publish dist/*
# - name: Publish wheel and source distributions as a GitHub release
# run: |
# python -m pip install "githubrelease>=1.5.9"
# githubrelease --github-token ${{ secrets.BOT_GITHUB_TOKEN }} release hdmf-dev/hdmf \
# create ${{ github.ref_name }} --name ${{ github.ref_name }} \
# --publish dist/*
15 changes: 8 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Run tests
on:
push:
branches:
- dev
tags-ignore: # exclude tags created by "ci_addons publish_github_release"
- 'latest'
- 'latest-tmp'
pull_request:
fork # TODO
# push:
# branches:
# - dev
# tags-ignore: # exclude tags created by "ci_addons publish_github_release"
# - 'latest'
# - 'latest-tmp'
# pull_request:

jobs:
run-tests:
Expand Down

0 comments on commit 36c79fb

Please sign in to comment.