22 lines
524 B
YAML
22 lines
524 B
YAML
name: Build zip for PR
|
|
on:
|
|
pull_request
|
|
jobs:
|
|
build:
|
|
name: Build zip for PR
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Build
|
|
id: build
|
|
uses: woocommerce/action-build@v2
|
|
- name: Upload PR zip
|
|
uses: actions/upload-artifact@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
name: woocommerce.zip
|
|
path: ${{ steps.build.outputs.zip_path }}
|
|
retention-days: 7
|