Skip to content

instawp-deployment.yml // build Plugin ZIP file as artifact for InstaWP. #13

instawp-deployment.yml // build Plugin ZIP file as artifact for InstaWP.

instawp-deployment.yml // build Plugin ZIP file as artifact for InstaWP. #13

name: Build to release branches
on:
workflow_dispatch:
push:
branches:
- master
- 1.x
- 2.x
- insta-wp
paths:
- '**workflows/build-and-push-assets.yml' # the workflow file itself
- 'resources/**'
- '**package.json'
- '**tsconfig.json'
- '**yarn.lock'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build-assets:
uses: inpsyde/reusable-workflows/.github/workflows/build-and-push-assets.yml@main
with:
BUILT_BRANCH_NAME: ${{ github.ref_name }}-built
COMPILE_SCRIPT_PROD: 'build'
COMPILE_SCRIPT_DEV: 'build:dev'
NODE_VERSION: '20'
MODE: 'prod'
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 }}
NPM_REGISTRY_TOKEN: ${{ secrets.DEPLOYBOT_PACKAGES_READ_ACCESS_TOKEN }}