30 lines
796 B
YAML
30 lines
796 B
YAML
name: Build release asset
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
build:
|
|
name: Build release asset
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup WooCommerce Monorepo
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
|
with:
|
|
build: false
|
|
|
|
- name: Build zip
|
|
working-directory: plugins/woocommerce
|
|
run: bash bin/build-zip.sh
|
|
|
|
- name: Upload release asset
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ github.event.release.upload_url }}
|
|
asset_path: plugins/woocommerce/woocommerce.zip
|
|
asset_name: woocommerce.zip
|
|
asset_content_type: application/zip
|