woocommerce/.github/workflows/build-release.yml

26 lines
700 B
YAML
Raw Normal View History

2020-04-27 23:09:29 +00:00
name: Build release asset
on:
release:
types: [published]
jobs:
build:
name: Build release asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
id: build
2020-04-29 16:35:11 +00:00
uses: woocommerce/action-build@master
2020-04-27 23:09:29 +00:00
with:
generate-zip: true
- 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: ${{ steps.build.outputs.zip_path }}
asset_name: woocommerce.zip
2020-04-27 23:09:29 +00:00
asset_content_type: application/zip