From ce343adaf1bd467ecbcbc410cb35cbfd69d1290f Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Fri, 12 May 2023 10:04:37 -0700 Subject: [PATCH] Create make-release.yml --- .github/workflows/make-release.yml | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/make-release.yml diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml new file mode 100644 index 0000000..4ae4745 --- /dev/null +++ b/.github/workflows/make-release.yml @@ -0,0 +1,59 @@ +name: Make full release + +on: + workflow_dispatch: + inputs: + publish-to-test-pypi: + description: 'Publish to test pypi instead of pypi' + required: false + default: false + type: boolean + bump-rule: + description: 'Rule for computing next release version' + required: false + default: 'prerelease' + type: choice + options: + - patch + - minor + - major + - prepatch + - preminor + - premajor + - prerelease + release-version: + description: 'Version number to use(instead of computing). Should be of the format x.y.z[rcn]. Do not use hyphens.' + required: false + default: '' + type: string + merge-strategy: + description: 'Merge strategy and strategy options. Used only in case of merge conflicts' + required: false + default: '' + type: string + +defaults: + run: + shell: bash + +env: + LANG: en_US.utf-8 + LC_ALL: en_US.utf-8 + PYTHON_VERSION: '3.10' + +jobs: + call-deploy-release: + permissions: + contents: write # To push a branch + pull-requests: write # To create a PR from that branch + + uses: eclipse-volttron/github-tooling/.github/workflows/deploy-release.yml@main + with: + merge-strategy: ${{ inputs.merge-strategy }} + release-version: ${{ inputs.release-version }} + bump-rule: ${{ inputs.bump-rule }} + run-tests-wait: 600 + publish-to-test-pypi: false + secrets: + git-token: ${{ secrets.AUTO_PROJECT_PAT }} + pypi-token: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file