Compare commits

...

3 commits

Author SHA1 Message Date
Nicolas Héron
4497b7a76c
Update main.yml 2025-01-17 15:06:00 +01:00
Nicolas Héron
e6cca00487
Update main.yml 2025-01-17 15:00:52 +01:00
Nicolas Héron
b259b75fc9
Update main.yml 2025-01-17 14:58:19 +01:00

View file

@ -3,14 +3,19 @@
name: Maven Package name: Maven Package
run-name: Release run ${{ github.run_number }} view
on: on:
release: push:
types: [created] branches: [ master ]
pull_request:
schedule:
- cron: "0 3 * * *"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -21,8 +26,16 @@ 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: Build with Maven - name: Cache the Maven packages to speed up build
run: mvn -B package --file pom.xml uses: actions/cache@v1
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