Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
248 changes: 124 additions & 124 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,133 +50,133 @@ jobs:
git push origin HEAD
env:
CLI_CORE_TAG: ${{ github.event.inputs.tag-name }}
release:
runs-on: ubuntu-latest
needs: [ update-api-definitions-changelog ]
outputs:
tag-name: ${{ steps.semantic-release.outputs.TAG_NAME }}
draft-tag-name: ${{ steps.semantic-release-draft.outputs.TAG_NAME }}
steps:
- name: Checkout cli
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Run git and npm update
run: |
git pull
make install
- name: Semantic Release runs
id: semantic-release
run: DEBUG=semantic-release:* npx semantic-release -t \${version}
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: verify release required
if: ${{steps.semantic-release.outputs.TAG_NAME == ''}}
uses: actions/github-script@v3
with:
script: |
core.setFailed('There are no relevant changes, so no new version is released.')
- name: Update release
run:
node .github/scripts/update-release.js
env:
TAG_NAME: ${{steps.semantic-release.outputs.TAG_NAME}}
RELEASE_BODY: ${{github.event.inputs.change-log}}
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
CLI_CORE_TAG: ${{ github.event.inputs.tag-name }}
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
oclif-release:
runs-on: ubuntu-latest
needs: [release]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- run: |
git pull
make install
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Invoke Oclif workflow
if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch == 'main'}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: 'oclif-release.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
- name: Invoke Oclif workflow for release candidate
if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch != 'main'}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: 'oclif-release.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "formula": "twiliorc", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'

docker-release:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- run: |
git pull
make install
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Invoke Docker workflow
if: ${{needs.release.outputs.tag-name != ''}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: 'docker-release.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
- name: Run acceptance testing for docker release
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: '.github/workflows/cli-test-docker.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
platform-executables-release:
runs-on: ubuntu-latest
needs: [ release ]
env:
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
strategy:
matrix:
executable_workflow: ['debian-executable-release.yml', 'macos-executable-release.yml', 'rpmbuild.yml', 'windows-executable-release.yml', 'apt-release.yml']
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- run: |
git pull
make install
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Invoke platform executable workflow
if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch == 'main'}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: ${{ matrix.executable_workflow }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# release:
# runs-on: ubuntu-latest
# needs: [ update-api-definitions-changelog ]
# outputs:
# tag-name: ${{ steps.semantic-release.outputs.TAG_NAME }}
# draft-tag-name: ${{ steps.semantic-release-draft.outputs.TAG_NAME }}
# steps:
# - name: Checkout cli
# uses: actions/checkout@v2
# with:
# persist-credentials: false
# - name: Run git and npm update
# run: |
# git pull
# make install
# - name: Semantic Release runs
# id: semantic-release
# run: DEBUG=semantic-release:* npx semantic-release -t \${version}
# env:
# GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: verify release required
# if: ${{steps.semantic-release.outputs.TAG_NAME == ''}}
# uses: actions/github-script@v3
# with:
# script: |
# core.setFailed('There are no relevant changes, so no new version is released.')
# - name: Update release
# run:
# node .github/scripts/update-release.js
# env:
# TAG_NAME: ${{steps.semantic-release.outputs.TAG_NAME}}
# RELEASE_BODY: ${{github.event.inputs.change-log}}
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# INPUTS: '{ "tag-name": "${{needs.release.outputs.draft-tag-name}}" }'
# CLI_CORE_TAG: ${{ github.event.inputs.tag-name }}
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# oclif-release:
# runs-on: ubuntu-latest
# needs: [release]
# steps:
# - name: Checkout cli repo
# uses: actions/checkout@v2
# - run: |
# git pull
# make install
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - name: Invoke Oclif workflow
# if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch == 'main'}}
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: 'oclif-release.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
# - name: Invoke Oclif workflow for release candidate
# if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch != 'main'}}
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: 'oclif-release.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "formula": "twiliorc", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
#
# docker-release:
# runs-on: ubuntu-latest
# needs: [ release ]
# steps:
# - name: Checkout cli repo
# uses: actions/checkout@v2
# - run: |
# git pull
# make install
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - name: Invoke Docker workflow
# if: ${{needs.release.outputs.tag-name != ''}}
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: 'docker-release.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# - name: Run acceptance testing for docker release
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: '.github/workflows/cli-test-docker.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# platform-executables-release:
# runs-on: ubuntu-latest
# needs: [ release ]
# env:
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# strategy:
# matrix:
# executable_workflow: ['debian-executable-release.yml', 'macos-executable-release.yml', 'rpmbuild.yml', 'windows-executable-release.yml', 'apt-release.yml']
# steps:
# - name: Checkout cli repo
# uses: actions/checkout@v2
# - run: |
# git pull
# make install
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - name: Invoke platform executable workflow
# if: ${{needs.release.outputs.tag-name != '' && steps.extract_branch.outputs.branch == 'main'}}
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: ${{ matrix.executable_workflow }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}

notify-complete-fail:
if: ${{ failure() || cancelled() }}
needs: [ release, oclif-release, platform-executables-release ]
needs: [ update-api-definitions-changelog ]
name: Notify Release Failed
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
changelog1

## [5.23.1](https://github.com/twilio/twilio-cli/compare/5.23.0...5.23.1) (2025-03-28)


Expand Down
Loading
Loading