From 2dd1b930f79d9f3e5d7257f1249a668c8ad3bc28 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 6 Mar 2025 17:05:26 -0500 Subject: [PATCH 1/2] Add ability to release upon workflow dispatch Bits are taken from http://github.com/brechtm/citeproc-py for which bits were taken from somewhere else as well --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f5c681416..e3de226e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: push: branches: - master + workflow_dispatch: jobs: auto-release: @@ -31,7 +32,12 @@ jobs: run: python -m pip install build twine - name: Create release - run: ~/auto shipit -vv + run: | + if [ "${{ github.event_name }}" = workflow_dispatch ] + then opts= + else opts=--only-publish-with-release-label + fi + ~/auto shipit -vv $opts env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TWINE_USERNAME: __token__ From 3ee1ad594d715a6ce80e7e55a4545fac1ba41796 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 7 Mar 2025 08:59:36 -0500 Subject: [PATCH 2/2] Allow auto to publish without release label (we will use CLI option) --- .autorc | 1 - 1 file changed, 1 deletion(-) diff --git a/.autorc b/.autorc index 27720ccd1..c17652098 100644 --- a/.autorc +++ b/.autorc @@ -1,5 +1,4 @@ { - "onlyPublishWithReleaseLabel": true, "baseBranch": "master", "author": "DANDI Bot ", "noVersionPrefix": true,