forked from Mosque-ICU/Islamic_ware
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.03 KB
/
publish.maven-application.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
43
name: Maven Package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Standard Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name:
Change directory to
server/content
run: cd server/content
- name: Build with Maven
run: mvn -B package -f
server/content/pom.xml # Replace "path/to/pom.xml" with the actual path to your pom.xml file
- name:
Publish to GitHub Packages
Apache Maven
run: mvn deploy -f
server/content/pom.xml # Replace "path/to/pom.xml" with the actual path to your pom.xml file
env:
GITHUB_TOKEN:
${{ github.token }}