mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Update Workflows
This commit is contained in:
3
.github/workflows/build_gradle_project.yaml
vendored
3
.github/workflows/build_gradle_project.yaml
vendored
@@ -7,7 +7,6 @@ on:
|
||||
project:
|
||||
description: 'The project to build'
|
||||
type: string
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build_gradle:
|
||||
@@ -30,7 +29,7 @@ jobs:
|
||||
env:
|
||||
CI: true
|
||||
with:
|
||||
arguments: '${{inputs.project}}:build --scan'
|
||||
arguments: "${{inputs.project && format('{0}:', inputs.project)}}build --scan"
|
||||
|
||||
- name: Upload Build Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
38
.github/workflows/publish_gradle_project.yaml
vendored
Normal file
38
.github/workflows/publish_gradle_project.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# This workflow can be used to publish any gradle project in the repo
|
||||
name: Publish Gradle Project
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
project:
|
||||
description: 'The project to publish'
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
publish_gradle:
|
||||
name: Publish Gradle
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Ensure Wrapper Permissions
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Gradle Publish
|
||||
uses: gradle/gradle-build-action@v2
|
||||
env:
|
||||
CI: true
|
||||
with:
|
||||
arguments: "${{inputs.project && format('{0}:', inputs.project)}}publish --scan"
|
||||
|
||||
- name: Upload Build Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: gradle-build
|
||||
path: '**/build/libs/*'
|
||||
Reference in New Issue
Block a user