2023-01-18 05:42:46 +00:00
|
|
|
name: WooCommerce Beta Tester Release
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
description: 'The version number for the release'
|
|
|
|
required: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Run release scripts
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2023-11-17 17:52:19 +00:00
|
|
|
with:
|
2024-05-21 22:28:00 +00:00
|
|
|
install: '@woocommerce/plugin-woocommerce'
|
|
|
|
build: '@woocommerce/plugin-woocommerce'
|
2023-01-18 05:42:46 +00:00
|
|
|
|
2023-08-09 00:20:34 +00:00
|
|
|
- name: Lint
|
|
|
|
working-directory: plugins/woocommerce-beta-tester
|
|
|
|
run: composer run phpcs
|
|
|
|
|
2023-01-18 05:42:46 +00:00
|
|
|
- name: Build WooCommerce Beta Tester Zip
|
|
|
|
working-directory: plugins/woocommerce-beta-tester
|
|
|
|
run: pnpm build:zip
|
|
|
|
|
|
|
|
- name: Create release
|
|
|
|
id: create_release
|
|
|
|
uses: woocommerce/action-gh-release@master
|
|
|
|
with:
|
|
|
|
tag_name: wc-beta-tester-${{ inputs.version }}
|
|
|
|
name: WooCommerce Beta Tester Release ${{ inputs.version }}
|
|
|
|
draft: false
|
|
|
|
files: plugins/woocommerce-beta-tester/woocommerce-beta-tester.zip
|