-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (35 loc) · 1.09 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy Flyway Community DB Support to Github Packages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Flyway Community DB Support
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: mvn -B install --file pom.xml
- name: Publish to GitHub Packages Apache Maven
if: contains(github.ref, 'main')
run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl '!flyway-community-db-support-archetype'
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish Archetype to GitHub Packages Apache Maven
if: contains(github.ref, 'main')
run: mvn -B deploy -Pgithub -s $GITHUB_WORKSPACE/settings.xml -pl flyway-community-db-support-archetype
env:
GITHUB_TOKEN: ${{ github.token }}