Skip to content

Commit d6504c0

Browse files
authored
Create main.yml
1 parent 1d987d5 commit d6504c0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Deploy to EC2
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 21
19+
20+
- name: Grant execute permission for gradlew
21+
run: chmod +x ./gradlew
22+
shell: bash
23+
24+
- name: Build and Test
25+
run: ./gradlew build -x test

0 commit comments

Comments
 (0)