From 36c79fb57c1717fa04de5c9f574ada9eb6ba33cf Mon Sep 17 00:00:00 2001 From: rly Date: Mon, 2 Oct 2023 17:32:17 -0700 Subject: [PATCH] Debug release issue --- .github/workflows/deploy_release.yml | 39 ++++++++++++++++++---------- .github/workflows/run_tests.yml | 15 ++++++----- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml index ef9490f0e..8a3f7448e 100644 --- a/.github/workflows/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -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: @@ -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 @@ -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/* diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 8c7c437c3..7d1786366 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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: