-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·44 lines (34 loc) · 1.13 KB
/
build-tomcat.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
44
name: Build Tomcat
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out tomcat-users.xml
uses: actions/checkout@v2
- name: List project files and java version
run: |
ls -ltr
java -version
- name: Check out Apache Tomcat
uses: actions/checkout@v2
with:
repository: apache/tomcat # Repository name with owner
ref: master # The branch, tag or SHA to checkout
path: ./tomcat # Relative path under $GITHUB_WORKSPACE
- name: Setup Java 9
uses: actions/setup-java@v1
with:
java-version: '9.0.4' # The JDK version to make available on the path
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: List project files and java version
run: |
ls -ltr
java -version
- name: Copy tomcat-users.xml into Tomcat configuration directory
run: cp -v tomcat-users.xml ./tomcat/conf/tomcat-users.xml
- name: Compile Tomcat
run: |
cd ./tomcat
ant