Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflows for creating releases #6365

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
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
34 changes: 34 additions & 0 deletions .github/workflows/integrate-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Integrate Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
platform:
description: 'Platform target for integration'
required: true
gbm-cli:
description: 'gbm-cli version'
default: 'latest'

jobs:
integrate_release:
runs-on: macos-latest
name: Integrate Gutenberg Release
env:
# Use the repo secret so we can access the main app repos
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

steps:
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.21

- name: Install CLI
run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.gbm-cli }}


- name: Create PR
run: gbm-cli release integrate ${{ github.event.inputs.version }} --${{ github.event.inputs.platform}}
31 changes: 31 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Prepare Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
gbm-cli:
description: 'gbm-cli version'
default: 'latest'

jobs:
prepare_release:
runs-on: macos-latest
name: Prepare Gutenberg Mobile release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
GITHUB_USER: ${{ github.actor }}

steps:
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.21

- name: Install CLI
run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.gbm-cli }}

- name: Create PR
run: yes | gbm-cli release prepare gbm ${{ github.event.inputs.version }}