Reuse github workflows (#6989)

This commit is contained in:
Yamila Moreno
2025-07-28 09:03:47 +02:00
committed by GitHub
parent b93e96a18d
commit 88055294a2
3 changed files with 30 additions and 8 deletions

View File

@@ -1,13 +1,6 @@
name: Build and Upload Penpot Bundles non-prod
name: Build and Upload Penpot Bundles
on:
# Create bundler for every tag
push:
tags:
- '**' # Pattern matched against refs/tags
# Create bundler every hour between 5:00 and 20:00 on working days
schedule:
- cron: '0 5-20 * * 1-5'
# Create bundler from manual action
workflow_dispatch:
inputs:
@@ -23,6 +16,12 @@ on:
options:
- individual
- all
workflow_call:
inputs:
gh_ref:
description: 'Name of the branch'
type: string
required: true
jobs:
build-bundles:
@@ -38,6 +37,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.gh_ref }}
- name: Extract somer useful variables
id: vars

11
.github/workflows/build-develop.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Build and Upload Penpot DEVELOP Bundles
on:
schedule:
- cron: '16 5-20 * * 1-5'
jobs:
build-develop-bundle:
uses: ./.github/workflows/build-bundles.yml
with:
gh_ref: "develop"

11
.github/workflows/build-staging.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Build and Upload Penpot STAGING Bundles
on:
schedule:
- cron: '0 5 * * 1-5'
jobs:
build-staging-bundle:
uses: ./.github/workflows/build-bundles.yml
with:
gh_ref: "staging"