Add gitea publish workflow
All checks were successful
Build & Release / release-library (push) Successful in 3m37s
All checks were successful
Build & Release / release-library (push) Successful in 3m37s
This commit is contained in:
38
.gitea/workflows/release.yaml
Normal file
38
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
name: Build & Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_BUILD_VERSION: ${{ gitea.ref_name }}
|
||||
ORG_GRADLE_PROJECT_DEVSOAP_DEPLOY_TOKEN: ${{ secrets.DEVSOAP_DEPLOY_TOKEN }}
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
release-library:
|
||||
runs-on: node20
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
||||
- name: Configure Java project
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
cache: 'gradle'
|
||||
- name: Cache Java dependencies
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: cache-java-dependencies
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.gradle') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- name: Upload to Devsoap Code
|
||||
run: ./gradlew publishMavenJavaPublicationToDSCodeRepository
|
Reference in New Issue
Block a user