-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9331 from google/release-automation
Update efficiency of release automation
- Loading branch information
Showing
1 changed file
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,11 +65,6 @@ on: | |
description: Release version | ||
required: false | ||
default: '' | ||
dry_run: | ||
type: boolean | ||
description: Run the publishing process without committing. | ||
required: false | ||
default: false | ||
|
||
concurrency: | ||
group: zips-${{ github.event_name }}-${{ github.ref }} | ||
|
@@ -223,6 +218,31 @@ jobs: | |
edit-mode: replace | ||
body: Build files for ${{ github.event.pull_request.head.sha }} have been deleted. | ||
|
||
dryrun-publish-to-wporg: | ||
name: '[DRY RUN] Publish to WordPress.org' | ||
runs-on: ubuntu-latest | ||
# environment: do not define to omit SVN credentials + deployment protection rules for this dry-run. | ||
if: github.event_name == 'workflow_dispatch' && ( github.ref_type == 'tag' || inputs.release_version != '' ) | ||
needs: build-zips | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: zip-files | ||
path: /tmp | ||
- name: Extract | ||
run: | | ||
unzip /tmp/google-site-kit.zip | ||
- uses: 10up/[email protected] | ||
with: | ||
dry-run: true | ||
env: | ||
BUILD_DIR: ./google-site-kit | ||
SLUG: google-site-kit | ||
SVN_PASSWORD: no-op-password | ||
SVN_USERNAME: no-op-username | ||
VERSION: ${{ inputs.release_version }} | ||
|
||
publish-to-wporg: | ||
name: Publish to WordPress.org | ||
runs-on: ubuntu-latest | ||
|
@@ -239,8 +259,6 @@ jobs: | |
run: | | ||
unzip /tmp/google-site-kit.zip | ||
- uses: 10up/[email protected] | ||
with: | ||
dry-run: ${{ inputs.dry_run }} | ||
env: | ||
BUILD_DIR: ./google-site-kit | ||
SLUG: google-site-kit | ||
|