33 lines
No EOL
862 B
YAML
33 lines
No EOL
862 B
YAML
name: Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ['*']
|
|
pull_request:
|
|
branches: ['*']
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone project
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install JDK 8
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '8'
|
|
distribution: 'temurin'
|
|
check-latest: true
|
|
|
|
- name: Setup gradle
|
|
uses: gradle/actions/setup-gradle@v4
|
|
|
|
- name: Build
|
|
if: gitea.ref == 'refs/heads/master'
|
|
run: ./gradlew build
|
|
|
|
- name: Run build & publish with Gradle Wrapper
|
|
if: gitea.ref == 'refs/heads/master'
|
|
run: chmod +x ./gradlew && ./gradlew publishAllPublicationsToNetheriteRepoRepository -PnetheriteRepoUsername=${{ secrets.REPOSILITE_USER }} -PnetheriteRepoPassword=${{ secrets.REPOSILITE_PASSWORD }} |