Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub action for building production version of master #13974

Merged
merged 9 commits into from
Nov 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'