Skip to content

Commit

Permalink
Merge pull request #9331 from google/release-automation
Browse files Browse the repository at this point in the history
Update efficiency of release automation
  • Loading branch information
tofumatt authored Oct 2, 2024
2 parents 0a2cb9e + 93d3cc0 commit 238f1b9
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/zips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 238f1b9

Please sign in to comment.