Skip to content

Commit 15b2151

Browse files
authored
Update main.yml
1 parent 11ed1e2 commit 15b2151

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@ name: Java CI with Maven
22
on:
33
push:
44
branches: [main]
5-
65
jobs:
7-
builds:
8-
runs-on: self-hosted
6+
build:
7+
runs-on: ubuntu-latest
8+
env:
9+
DEPLOY_ENV: ${{ vars.DEPLOY_ENV }}
910
steps:
10-
- name: Checkout Code
11-
uses: actions/checkout@v4
12-
- name: Build Java package
13-
run: mvn clean install -f Javarepo1/pom.xml
14-
- name: Upload JAR Artifact
15-
uses: actions/upload-artifact@v4
16-
with:
17-
name: my-java-artifact
18-
path: Javarepo1/target/*.jar
11+
- name: Print variable
12+
run: echo "Deploying to $DEPLOY_ENV"

0 commit comments

Comments
 (0)