-
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 branch 'main' of github.com:google/site-kit-wp.
- Loading branch information
Showing
10 changed files
with
113 additions
and
61 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 | ||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.