mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-26 01:14:19 +08:00
36 lines
953 B
YAML
36 lines
953 B
YAML
name: Build and distribute
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
PACKAGE_VERSION:
|
|
description: 'Package Version'
|
|
required: false
|
|
push:
|
|
branches: [ 'dev/**' ]
|
|
paths:
|
|
- 'api/**'
|
|
- 'lib/**'
|
|
- 'src/**'
|
|
- 'modules/**'
|
|
- '.distignore'
|
|
- 'composer.*'
|
|
- 'package*'
|
|
- 'readme.txt'
|
|
- 'webpack.config.js'
|
|
- '*.php'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-distribute:
|
|
uses: inpsyde/reusable-workflows/.github/workflows/build-and-distribute.yml@main
|
|
secrets:
|
|
GITHUB_USER_EMAIL: ${{ secrets.DEPLOYBOT_EMAIL }}
|
|
GITHUB_USER_NAME: ${{ secrets.DEPLOYBOT_USER }}
|
|
GITHUB_USER_SSH_KEY: ${{ secrets.DEPLOYBOT_SSH_PRIVATE_KEY }}
|
|
GITHUB_USER_SSH_PUBLIC_KEY: ${{ secrets.DEPLOYBOT_SSH_PUBLIC_KEY }}
|
|
with:
|
|
PACKAGE_VERSION: ${{ inputs.PACKAGE_VERSION }}
|
|
NODE_VERSION: 22
|