forked from SpraxDev/BetterChairs
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.58 KB
/
reposilite.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Set up our custom Artifactory instance
uses: actions/setup-java@v2
with: # running setup-java again overwrites the settings.xml
java-version: '17'
distribution: 'adopt'
server-id: landania-repository-private # value of repository/id field of the pom.xml
server-username: MAVEN_NAME_REF # env variable name for username of Artifactory server; value can be anything as it is a transient user
server-password: MAVEN_TOKEN_REF # env variable name for Artifactory access token
# after running this action, the <username> tag contains ${env.ARTIFACTORY_USERNAME_REF} and <password> contains ${env.ARTIFACTORY_TOKEN_REF}
- name: Build with Maven
run: mvn -B deploy --file pom.xml
env:
# assign the environment variable env.ARTIFACTORY_TOKEN_REF with the previously configured ARTIFACTORY_TOKEN
MAVEN_NAME_REF: ${{ secrets.MAVEN_NAME }}
# assign the environment variable env.ARTIFACTORY_USERNAME_REF with the previously configured ARTIFACTORY_USERNAME
MAVEN_TOKEN_REF: ${{ secrets.MAVEN_TOKEN }}