Skip to content

Build and distribute #30

Build and distribute

Build and distribute #30

name: Build and distribute
on:
workflow_dispatch:
inputs:
CUSTOM_PACKAGE_VERSION:
description: 'Custom Package Version (skip auto-detection of pre-release version)'
required: false
CUSTOM_BUILD_BRANCH:
description: 'Custom build branch name'
required: false
push:
branches:
- master
- 1.x
- 2.x
paths:
- '**workflows/build-and-distribute.yml' # the workflow file itself
- 'resources/**'
- '**package.json'
- '**tsconfig.json'
- '**yarn.lock'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-assets:
uses: inpsyde/reusable-workflows/.github/workflows/build-and-distribute.yml@main
with:
PACKAGE_VERSION: ${{ inputs.CUSTOM_PACKAGE_VERSION }}
BUILT_BRANCH_NAME: ${{ inputs.CUSTOM_BUILD_BRANCH }}
NODE_VERSION: '20'
PHP_VERSION: '8.1'
secrets:
COMPOSER_AUTH_JSON: ${{ secrets.PACKAGIST_AUTH_JSON }}
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 }}