-
Notifications
You must be signed in to change notification settings - Fork 59
32 lines (28 loc) · 758 Bytes
/
maven.yml
File metadata and controls
32 lines (28 loc) · 758 Bytes
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
name: DriveBackupV2 CI
on:
workflow_dispatch:
push:
paths:
- 'DriveBackup/**'
pull_request:
paths:
- 'DriveBackup/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml -B package --file DriveBackup/pom.xml
env:
USER_NAME: ${{ secrets.CRED_SERVER_USERNAME }}
ACCESS_TOKEN: ${{ secrets.CRED_SERVER_PASSWORD }}
- uses: actions/upload-artifact@v4
with:
name: DriveBackupV2.jar
path: DriveBackup/target/DriveBackupV2.jar