From 5cca713eda1ade6bf30dba9ba7038b923ae8e968 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Fri, 5 May 2023 12:30:08 -0600 Subject: [PATCH] .github: Add AsteriskReleaser --- .github/workflows/AsteriskReleaser.yml | 61 ++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/AsteriskReleaser.yml diff --git a/.github/workflows/AsteriskReleaser.yml b/.github/workflows/AsteriskReleaser.yml new file mode 100644 index 0000000000..9a9b46a833 --- /dev/null +++ b/.github/workflows/AsteriskReleaser.yml @@ -0,0 +1,61 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json +name: Asterisk Release +run-name: ${{ github.actor }} is creating an Asterisk release +on: + workflow_dispatch: + inputs: + is_security: + description: 'Security or Hotfix?' + required: true + type: boolean + default: false + new_version: + description: | + New Version + Examples: + 21.4.0-rc1, 21.4.0-rc2, 21.4.0, 21.4.1 + certified/21.4-cert1-rc1, certified/21.4-cert1 + required: true + type: string + start_version: + description: | + Last Version + Only use when you KNOW that the automated + process won't get it right.' + required: false + type: string + push_live: + description: 'Push live?' + required: true + type: boolean + default: false + send_email: + description: 'Send announcement emails?' + required: true + type: boolean + default: false + +jobs: + ReleaseAsterisk: + runs-on: ubuntu-latest + steps: + - name: Run Releaser + uses: asterisk/asterisk-ci-actions/AsteriskReleaserComposite@main + with: + is_security: ${{inputs.is_security}} + new_version: ${{inputs.new_version}} + start_version: ${{inputs.start_version}} + push_live: ${{inputs.push_live}} + send_email: ${{inputs.send_email}} + repo: ${{github.repository}} + asterisk_mail_list_ga: ${{vars.ASTERISK_MAIL_LIST_GA}} + asterisk_mail_list_rc: ${{vars.ASTERISK_MAIL_LIST_RC}} + asterisk_mail_list_cert_ga: ${{vars.ASTERISK_MAIL_LIST_CERT_GA}} + asterisk_mail_list_cert_rc: ${{vars.ASTERISK_MAIL_LIST_CERT_RC}} + asterisk_mail_list_sec: ${{vars.ASTERISK_MAIL_LIST_CERT_SEC}} + gpg_private_key: ${{secrets.ASTDEV_GPG_PRIV_KEY}} + github_token: ${{secrets.GITHUB_TOKEN}} + application_id: ${{secrets.ASTERISK_ORG_ACCESS_APP_ID}} + application_private_key: ${{secrets.ASTERISK_ORG_ACCESS_APP_PRIV_KEY}} + asteriskteamsa_username: ${{secrets.ASTERISKTEAMSA_GMAIL_ACCT}} + asteriskteamsa_token: ${{secrets.ASTERISKTEAMSA_GMAIL_TOKEN}}