Compare commits

..

No commits in common. "4497b7a76cd7e16b165da82eff90eff348609df0" and "0fc09df10defeebd37c3a832699b37cdc6658bcb" have entirely different histories.

View file

@ -3,19 +3,14 @@
name: Maven Package name: Maven Package
run-name: Release run ${{ github.run_number }} view
on: on:
push: release:
branches: [ master ] types: [created]
pull_request:
schedule:
- cron: "0 3 * * *"
jobs: jobs:
build: build:
runs-on: self-hosted runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -26,16 +21,8 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Cache the Maven packages to speed up build - name: Build with Maven
uses: actions/cache@v1 run: mvn -B package --file pom.xml
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.1
- name: Publish to GitHub Packages Apache Maven - name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml