builds godot
add a option to not release
bendn 2023-04-03
parent efe5e00 · commit 1e776c5
-rw-r--r--.github/workflows/manual-build-2d.yml7
-rw-r--r--.github/workflows/manual-build-normal.yml5
-rw-r--r--.github/workflows/reusable-build.yml6
3 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/manual-build-2d.yml b/.github/workflows/manual-build-2d.yml
index a9d63cc..694a46f 100644
--- a/.github/workflows/manual-build-2d.yml
+++ b/.github/workflows/manual-build-2d.yml
@@ -7,7 +7,11 @@ on:
type: string
description: which ref to build
required: true
-
+ release:
+ type: string
+ default: "yes"
+ description: to make a release
+
jobs:
two-dimensions:
name: Build ${{ inputs.ref }}
@@ -18,4 +22,5 @@ jobs:
build-name: bendn.2D
modules-path: ./.github/2d-build-modules.py
flags: ""
+ make-release: ${{ inputs.release }}
secrets: inherit
diff --git a/.github/workflows/manual-build-normal.yml b/.github/workflows/manual-build-normal.yml
index ffe6898..95a6212 100644
--- a/.github/workflows/manual-build-normal.yml
+++ b/.github/workflows/manual-build-normal.yml
@@ -7,6 +7,10 @@ on:
type: string
description: which ref to build
required: true
+ release:
+ type: string
+ default: "yes"
+ description: to make a release
# turn on when the godot5 is in dev
# schedule:
# - cron: '30 20 * * *'
@@ -21,4 +25,5 @@ jobs:
build-name: bendn
modules-path: ./.github/normal-build-modules.py
flags: ""
+ make-release: ${{ inputs.release }}
secrets: inherit
diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml
index 6177fe0..fabd372 100644
--- a/.github/workflows/reusable-build.yml
+++ b/.github/workflows/reusable-build.yml
@@ -19,6 +19,10 @@ on:
build-name:
type: string
required: true
+ make-release:
+ type: string
+ default: "yes"
+ required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.ref }}
@@ -274,6 +278,7 @@ jobs:
path: godot/bin/*.x86_64
image:
+ if: inputs.make-release == 'yes'
permissions: write-all
name: Docker image
runs-on: ubuntu-latest
@@ -285,6 +290,7 @@ jobs:
name: ${{ inputs.name }}
release:
+ if: inputs.make-release == 'yes'
name: Create/update a release
runs-on: ubuntu-latest
needs: [editor, templates]