From b2e95da9aa08e0b5421ea3a054df69fd7049bcf8 Mon Sep 17 00:00:00 2001 From: jhnstn Date: Wed, 8 Nov 2023 17:02:23 -0500 Subject: [PATCH 1/3] Add workflows for creating releases --- .github/workflows/integrate-release.yml | 34 +++++++++++++++++++++++++ .github/workflows/prepare-release.yml | 31 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 .github/workflows/integrate-release.yml create mode 100644 .github/workflows/prepare-release.yml diff --git a/.github/workflows/integrate-release.yml b/.github/workflows/integrate-release.yml new file mode 100644 index 0000000000..98e4a52c2c --- /dev/null +++ b/.github/workflows/integrate-release.yml @@ -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 + cli: + description: '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/setup-go@v4.1.0 + with: + go-version: 1.21 + + - name: Install CLI + run: go install github.com/jhnstn/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} + + + - name: Create PR + run: gbm-cli release integrate ${{ github.event.inputs.version }} --${{ github.event.inputs.platform}} diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml new file mode 100644 index 0000000000..742a85ef2b --- /dev/null +++ b/.github/workflows/prepare-release.yml @@ -0,0 +1,31 @@ +name: Prepare Release +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release' + required: true + cli: + description: '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/setup-go@v4.1.0 + with: + go-version: 1.21 + + - name: Install CLI + run: go install github.com/jhnstn/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} + + - name: Create PR + run: yes | gbm-cli release prepare gbm ${{ github.event.inputs.version }} + From 0e0d117872195863a9cac08489cbd3d7d3f3a202 Mon Sep 17 00:00:00 2001 From: jhnstn Date: Wed, 8 Nov 2023 17:07:00 -0500 Subject: [PATCH 2/3] fix repo --- .github/workflows/integrate-release.yml | 2 +- .github/workflows/prepare-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integrate-release.yml b/.github/workflows/integrate-release.yml index 98e4a52c2c..01d77c9332 100644 --- a/.github/workflows/integrate-release.yml +++ b/.github/workflows/integrate-release.yml @@ -27,7 +27,7 @@ jobs: go-version: 1.21 - name: Install CLI - run: go install github.com/jhnstn/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} + run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} - name: Create PR diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 742a85ef2b..b11db6bd2c 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -24,7 +24,7 @@ jobs: go-version: 1.21 - name: Install CLI - run: go install github.com/jhnstn/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} + run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} - name: Create PR run: yes | gbm-cli release prepare gbm ${{ github.event.inputs.version }} From 910792db767a23839e0a1356ef4a4a6e784b0b33 Mon Sep 17 00:00:00 2001 From: jhnstn Date: Wed, 8 Nov 2023 17:23:52 -0500 Subject: [PATCH 3/3] use gbm-cli for the input name --- .github/workflows/integrate-release.yml | 6 +++--- .github/workflows/prepare-release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integrate-release.yml b/.github/workflows/integrate-release.yml index 01d77c9332..518b1cf4f4 100644 --- a/.github/workflows/integrate-release.yml +++ b/.github/workflows/integrate-release.yml @@ -8,8 +8,8 @@ on: platform: description: 'Platform target for integration' required: true - cli: - description: 'ClI version' + gbm-cli: + description: 'gbm-cli version' default: 'latest' jobs: @@ -27,7 +27,7 @@ jobs: go-version: 1.21 - name: Install CLI - run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.cli }} + run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.gbm-cli }} - name: Create PR diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index b11db6bd2c..1fbe748742 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -5,8 +5,8 @@ on: version: description: 'Version to release' required: true - cli: - description: 'ClI version' + gbm-cli: + description: 'gbm-cli version' default: 'latest' jobs: @@ -24,7 +24,7 @@ jobs: go-version: 1.21 - name: Install CLI - run: go install github.com/wordpress-mobile/release-toolkit-gutenberg-mobile/gbm-cli@${{ github.event.inputs.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 }}