-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.01 KB
/
sink_package.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
38
39
40
41
42
name: SinkPackage
on:
push:
branches:
- main
tags:
- '*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: tuancamtbtx/airflow
jobs:
build-and-push-package:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Set up Maven
id: setup
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.2
- name: Build with Maven
id: build_maven
run: mvn -B package --file pom.xml
- name: Publish package
id: publish_package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.REGISTRY_GITHUB_TOKEN }}