This adds gitea workflows (#1)
Some checks failed
Gitea Actions Demo / build (push) Failing after 8s
Some checks failed
Gitea Actions Demo / build (push) Failing after 8s
Cause they work now Reviewed-on: #1
This commit is contained in:
parent
0eec2a9756
commit
fb92f678f8
18
.gitea/workflows/build.yml
Normal file
18
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '21'
|
||||||
|
|
||||||
|
- name: Check out
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: ./gradlew jar
|
29
.gitea/workflows/publish.yml
Normal file
29
.gitea/workflows/publish.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '21'
|
||||||
|
|
||||||
|
- name: Check out
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
uses: ./gradlew jar
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: ./gradlew publish
|
||||||
|
env:
|
||||||
|
ORG_GRADLE_PROJECT_GiteaUsername: ${{secrets.username}}
|
||||||
|
ORG_GRADLE_PROJECT_GiteaPassword: ${{secrets.password}}
|
Loading…
x
Reference in New Issue
Block a user