mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
1
.github/workflows/check_gradle_all.yaml
vendored
1
.github/workflows/check_gradle_all.yaml
vendored
@@ -2,6 +2,7 @@
|
||||
name: 🐘 Gradle | Check All
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [ opened, synchronize, reopened ]
|
||||
|
||||
|
||||
1
.github/workflows/lint_yaml.yaml
vendored
1
.github/workflows/lint_yaml.yaml
vendored
@@ -2,6 +2,7 @@
|
||||
name: 🔎 Lint Yaml
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
types: [ opened, synchronize, reopened ]
|
||||
|
||||
|
||||
31
.github/workflows/publish_container.yaml
vendored
31
.github/workflows/publish_container.yaml
vendored
@@ -2,11 +2,31 @@
|
||||
name: 🐋 Container | Publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
project:
|
||||
required: true
|
||||
description: 'The container to publish'
|
||||
type: string
|
||||
version:
|
||||
required: true
|
||||
description: 'The version to release'
|
||||
type: string
|
||||
category:
|
||||
required: true
|
||||
description: 'The category of project'
|
||||
type: choice
|
||||
options:
|
||||
- containers
|
||||
push:
|
||||
tags:
|
||||
- 'containers/*/v*.*.*'
|
||||
|
||||
jobs:
|
||||
# This job either uses the inputs from the workflow_dispatch event,
|
||||
# or will split values out of the pushed tag.
|
||||
# This allows the release manager to either create a release themselves and have this job pick it up,
|
||||
# Or run this job to create a release.
|
||||
determine_values:
|
||||
name: 🔎 Determine Values
|
||||
runs-on: ubuntu-latest
|
||||
@@ -20,18 +40,21 @@ jobs:
|
||||
- name: 🔎 Determine Project Values
|
||||
id: determine_values
|
||||
env:
|
||||
CATEGORY_OVERRIDE: ${{ inputs.category }}
|
||||
PROJECT_OVERRIDE: ${{ inputs.project }}
|
||||
VERSION_OVERRIDE: ${{ inputs.version }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
category=${TAG%%/*}
|
||||
category=${CATEGORY_OVERRIDE:-${TAG%%/*}}
|
||||
echo "category=${category}"
|
||||
echo "category=${category}" >> $GITHUB_OUTPUT
|
||||
|
||||
version=${TAG##*/}
|
||||
version=${VERSION_OVERRIDE:-${TAG##*/}}
|
||||
echo "version=${version}"
|
||||
echo "version=${version}" >> $GITHUB_OUTPUT
|
||||
|
||||
project=${TAG#*/}
|
||||
project=${project%/*}
|
||||
project=${PROJECT_OVERRIDE:-${TAG#*/}}
|
||||
project=${PROJECT_OVERRIDE:-${project%/*}}
|
||||
echo "project=${project}"
|
||||
echo "project=${project}" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
28
.github/workflows/publish_gradle_project.yaml
vendored
28
.github/workflows/publish_gradle_project.yaml
vendored
@@ -3,11 +3,31 @@
|
||||
name: 🐘 Gradle | Publish Project
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
category:
|
||||
required: true
|
||||
description: 'The category of project'
|
||||
type: choice
|
||||
options:
|
||||
- plugins
|
||||
project:
|
||||
required: true
|
||||
description: 'The project to build'
|
||||
type: string
|
||||
version:
|
||||
required: true
|
||||
description: 'The version to release'
|
||||
type: string
|
||||
push:
|
||||
tags:
|
||||
- 'plugins/*/v*.*.*'
|
||||
|
||||
jobs:
|
||||
# This job either uses the inputs from the workflow_dispatch event,
|
||||
# or will split values out of the pushed tag.
|
||||
# This allows the release manager to either create a release themselves and have this job pick it up,
|
||||
# Or run this job to create a release.
|
||||
determine_values:
|
||||
name: 🔎 Determine Values
|
||||
runs-on: ubuntu-latest
|
||||
@@ -23,16 +43,16 @@ jobs:
|
||||
env:
|
||||
TAG: ${{ github.ref_name }}
|
||||
run: |
|
||||
category=${TAG%%/*}
|
||||
category=${CATEGORY_OVERRIDE:-${TAG%%/*}}
|
||||
echo "category=${category}"
|
||||
echo "category=${category}" >> $GITHUB_OUTPUT
|
||||
|
||||
version=${TAG##*/}
|
||||
version=${VERSION_OVERRIDE:-${TAG##*/}}
|
||||
echo "version=${version}"
|
||||
echo "version=${version}" >> $GITHUB_OUTPUT
|
||||
|
||||
project=${TAG#*/}
|
||||
project=${project%/*}
|
||||
project=${PROJECT_OVERRIDE:-${TAG#*/}}
|
||||
project=${PROJECT_OVERRIDE:-${project%/*}}
|
||||
echo "project=${project}"
|
||||
echo "project=${project}" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user