29 lines
748 B
YAML
29 lines
748 B
YAML
name: Publish to Reposilite
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
server-id: reposilite # Value of the distributionManagement/repository/id field of the pom.xml
|
|
server-username: MAVEN_USERNAME
|
|
server-password: MAVEN_PASSWORD
|
|
cache: 'maven'
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml
|
|
- name: Publish to Reposilite
|
|
run: mvn -B deploy
|
|
env:
|
|
MAVEN_USERNAME: simpleclans
|
|
MAVEN_PASSWORD: ${{ secrets.REPOSILITE_TOKEN }}
|