Skip to content

Commit

Permalink
Fix GitHub action for building production version of master (#13974)
Browse files Browse the repository at this point in the history
* Update action build to only use external action
  • Loading branch information
dereksmart authored Nov 6, 2019
1 parent 383876e commit c9d1b64
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ on:
jobs:
build_master_job:
runs-on: ubuntu-latest
name: Build production version of master to master-built branch
name: Build production version of master to master-built branch!
steps:
- name: Checkout Jetpack
uses: actions/checkout@master
- name: Build production files
run: COMPOSER_MIRROR_PATH_REPOS=1 yarn run build-production
- name: Purge dev files
run: $GITHUB_WORKSPACE/bin/prepare-built-branch.sh
- name: Push to built branch
id: commit-and-push
uses: automattic/action-commit-to-branch@master
- name: Build production version
uses: automattic/action-jetpack-build-to-branch@master
with:
branch: 'master-built'
commit_message: 'Automated production build from master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
branch_pull: 'master'
branch_push: 'master-built'
commit_message: 'Automated production build from master'

0 comments on commit c9d1b64

Please sign in to comment.