Skip to content

Commit

Permalink
add patch build
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementHector committed Jul 12, 2023
1 parent fb8c897 commit 958baa2
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 0 deletions.
89 changes: 89 additions & 0 deletions .github/workflows/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"categories": [
{
"title": "## πŸš€ Features",
"labels": ["feature"]
},
{
"title": "## πŸ› Fixes",
"labels": ["fix"]
},
{
"key": "tests",
"title": "## πŸ§ͺ Tests",
"labels": ["test"]
},
{
"title": "## πŸ§ͺ Tests and some πŸͺ„ Magic",
"labels": ["test", "magic"],
"exclude_labels": ["no-magic"],
"exhaustive": true,
"exhaustive_rules": "false",
"empty_content": "- no matching PRs",
"rules": [
{
"pattern": "open",
"on_property": "status",
"flags": "gu"
}
]
}
],

// "ignore_labels": [
// "ignore"
// ],
"sort": {
"order": "ASC",
"on_property": "mergedAt"
},
"template": "${{UNCATEGORIZED}}",
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
"empty_template": "- no changes",
"label_extractor": [
{
"pattern": "(.) (.+)",
"target": "$1",
"flags": "gu"
},
{
"pattern": "\\[Issue\\]",
"on_property": "title",
"method": "match"
}
],
// "duplicate_filter": {
// "pattern": "\\[ABC-....\\]",
// "on_property": "title",
// "method": "match"
// },
// "reference": {
// "pattern": ".*\\ \\#(.).*",
// "on_property": "body",
// "method": "replace",
// "target": "$1"
// },
// "transformers": [
// {
// "pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
// "target": "- $4\n - $6"
// }
// ],
// "trim_values": false,
// "max_tags_to_fetch": 200,
// "max_pull_requests": 200,
// "max_back_track_time_days": 365,
// "exclude_merge_branches": [
// "Owner/qa"
// ],
"tag_resolver": {
"method": "semver",
"filter": {
"pattern": "api-(.+)",
"flags": "gu"
}
},
// "base_branches": [
// "dev"
// ]
}
62 changes: 62 additions & 0 deletions .github/workflows/patch_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: πŸ“¦ Build Zip Patch

on:
push:
tags:
- '*.*.*'
- '*.*.*-*'
- 'CI/*.*.*-*'
workflow_dispatch:
inputs:
name:
type: choice
description: Who to greet
options:
- monalisa
- cschleiden
message:
required: true
use-emoji:
type: boolean
description: Include emojis
environment:
type: environment
jobs:
build-zip-patch:
runs-on: [self-hosted, ubuntu]

steps:

- name: πŸš› Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

# - name: "πŸ“ Build Changelog"
# id: changelog
# uses: mikepenz/[email protected]
# with:
# # fromTag: "3.15.6"
# # toTag: "3.15.8"
# commitMode: true
# failOnError: true
# configuration: "configuration.json"
# env:
# GITHUB_TOKEN: ${{ secrets.QUAD_PUBLIC_GITHUB_TOKEN }}

- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: 🧡 Install Requirements
run: ./tools/create_env.sh && ./tools/fetch_thirdparty_libs.sh

- name: πŸ”¨ Build
run: tools/create_zip.sh --path /prod/softprod/apps/openpype/REPOSITORY/

# - name: πŸ’¬ Message to Release chat
# uses: julb/action-post-googlechat-message@v1
# with:
# message: ${{ steps.changelog.outputs.changelog }}
# gchat_webhook_url: ${{ secrets.GCHAT_RELEASE_WEBHOOK_URL }}

0 comments on commit 958baa2

Please sign in to comment.