This commit is contained in:
parent
74fb76248e
commit
f7828281ad
3 changed files with 51 additions and 20 deletions
22
.forgejo/workflows/build.yaml
Normal file
22
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Build
|
||||
run-name: ${{ github.actor }} is building
|
||||
on: [ pull_request ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- name: build
|
||||
run: gradle build
|
||||
- name: sonar send
|
||||
run: gradle sonar -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: build/libs/
|
29
.forgejo/workflows/publish.yaml
Normal file
29
.forgejo/workflows/publish.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: Build
|
||||
run-name: ${{ github.actor }} is building
|
||||
on: [ push ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'gradle'
|
||||
- name: build
|
||||
run: gradle build
|
||||
|
||||
- name: sonar send
|
||||
run: gradle sonar -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }}
|
||||
|
||||
- name: publish
|
||||
run: gradle publish
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_repounurledmeUsername: ${{ secrets.USERNAME }}
|
||||
ORG_GRADLE_PROJECT_repounurledmePassword: ${{ secrets.PASSWORD }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build
|
||||
path: build/libs/
|
Loading…
Add table
Add a link
Reference in a new issue