Merge pull request #25 from james-allan/patch-1 #10
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
name: Deploy on push | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
build-and-deploy: | |
if: github.repository_owner == 'woocommerce' | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build | |
run: ./build.sh | |
- name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
target_branch: gh-pages | |
build_dir: build |