From fb653fc05fbec25f3d876f1720e3f9243922cc94 Mon Sep 17 00:00:00 2001 From: mschwoerer <82171591+mschwoer@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:04:46 +0200 Subject: [PATCH] adapt to new release workflow --- .github/workflows/create_release.yml | 19 +++++++------------ .github/workflows/publish_on_pypi.yml | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index cb800352..49cba5c2 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -1,27 +1,22 @@ # Create a draft release and build and upload all installers to it. -name: Create Draft Release +name: Create Release on: workflow_dispatch: inputs: - commit_to_release: - description: 'Enter commit hash to release (example: ef4037cb571f99cb4919b520fde7174972aae473)' + commitish_to_release: type: string - required: true - tag_to_release: - description: 'Enter tag to release (example: v1.5.5)' - type: string - required: true + description: 'Enter commit hash or branch to release (default: main).' + default: "main" jobs: create-release: + uses: MannLabs/alphashared/.github/workflows/create_release.yml@v1 secrets: inherit permissions: contents: write - uses: MannLabs/alphashared/.github/workflows/create_release.yml@v1 with: package_name: alphadia - commit_to_release: ${{ inputs.commit_to_release }} - tag_to_release: ${{ inputs.tag_to_release }} + commitish_to_release: ${{ inputs.commitish_to_release }} build_nodejs_ui: true - test_app: true + test_app: false diff --git a/.github/workflows/publish_on_pypi.yml b/.github/workflows/publish_on_pypi.yml index e89d5b47..4a538d6f 100644 --- a/.github/workflows/publish_on_pypi.yml +++ b/.github/workflows/publish_on_pypi.yml @@ -14,7 +14,7 @@ jobs: uses: MannLabs/alphashared/.github/workflows/publish_on_pypi.yml@v1 with: # see the documentation of the workflow for more information on the parameters - package_name: alphdia + package_name: alphadia tag_to_release: ${{ inputs.tag_to_release }} secrets: test_pypi_api_token: ${{ secrets.TEST_PYPI_API_TOKEN }}