diff --git a/.autorc b/.autorc index c1765209..c4fc1743 100644 --- a/.autorc +++ b/.autorc @@ -1,15 +1,7 @@ { + "onlyPublishWithReleaseLabel": true, "baseBranch": "master", "author": "DANDI Bot ", "noVersionPrefix": true, - "plugins": [ - "git-tag", - [ - "exec", - { - "afterRelease": "python -m build && twine upload dist/*" - } - ], - "released" - ] + "plugins": ["git-tag", "released"] } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c565864..9d810e14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,6 @@ on: push: branches: - master - workflow_dispatch: env: AUTO_VERSION: v11.3.6 @@ -104,12 +103,9 @@ jobs: - name: Create release run: | - echo "@${{ github.actor }} is creating a release triggered by ${{ github.event_name }}" - if [ "${{ github.event_name }}" = workflow_dispatch ] - then opts= - else opts=--only-publish-with-release-label - fi - ~/auto shipit -vv $opts + ~/auto shipit -vv + python -m build + twine upload dist/* env: GH_TOKEN: ${{ secrets.DANDI_GITHUB_TOKEN }} TWINE_USERNAME: __token__