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

31 lines
972 B
YAML
Raw Normal View History

name: Build release zip file
on:
workflow_dispatch:
inputs:
ref:
description: 'By default the zip file is generated from the branch the workflow runs from, but you can specify an explicit reference to use instead here (e.g. refs/tags/tag_name or refs/heads/release/x.x). The resulting file will be available as an artifact on the workflow run.'
required: false
default: ''
jobs:
build:
name: Build release zip file
runs-on: ubuntu-20.04
steps:
- name: Checkout code.
2022-04-21 18:29:53 +00:00
uses: actions/checkout@v3
- name: Install PNPM
2022-05-02 17:08:52 +00:00
run: npm install -g pnpm@^6.24.2
- name: Build zip
run: pnpm nx build-zip woocommerce
- name: Upload the zip file as an artifact
uses: actions/upload-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: woocommerce
path: plugins/woocommerce/woocommerce.zip
retention-days: 7