setup common workflows
This commit is contained in:
41
.gitea/workflows/publish-artifact.yaml
Normal file
41
.gitea/workflows/publish-artifact.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Publish Artifact
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
BRANCH_REFERENCE:
|
||||
description: "Branch reference"
|
||||
required: true
|
||||
type: "string"
|
||||
JAVA_DISTRIBUTION:
|
||||
default: "temurin"
|
||||
description: "Java distribution to use"
|
||||
required: false
|
||||
type: "string"
|
||||
JAVA_VERSION:
|
||||
default: "25"
|
||||
description: "Java version to use"
|
||||
required: false
|
||||
type: "string"
|
||||
|
||||
jobs:
|
||||
publish-artifact:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
ref: ${{ inputs.BRANCH_REFERENCE }}
|
||||
token: ${{ secrets.CI_BOT_TOKEN }}
|
||||
- name: "Set up JDK"
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: ${{ inputs.JAVA_DISTRIBUTION }}
|
||||
java-version: ${{ inputs.JAVA_VERSION }}
|
||||
- name: "Run Gradle"
|
||||
run: ./gradlew publishAllPublicationsToHlaejaRepository
|
||||
shell: bash
|
||||
env:
|
||||
REPOSITORY_USER: ${{ secrets.CI_BOT_USERNAME }}
|
||||
REPOSITORY_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
|
||||
Reference in New Issue
Block a user