We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ed1e2 commit 15b2151Copy full SHA for 15b2151
.github/workflows/main.yml
@@ -2,17 +2,11 @@ name: Java CI with Maven
2
on:
3
push:
4
branches: [main]
5
-
6
jobs:
7
- builds:
8
- runs-on: self-hosted
+ build:
+ runs-on: ubuntu-latest
+ env:
9
+ DEPLOY_ENV: ${{ vars.DEPLOY_ENV }}
10
steps:
- - 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
+ - name: Print variable
+ run: echo "Deploying to $DEPLOY_ENV"
0 commit comments