Skip to content

Commit

Permalink
Merge build workflow into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
WitchBoo committed Jul 16, 2024
1 parent aeac865 commit 7bbe0fb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Java CI with Maven
name: Java CI with Maven and Deploy to Repository

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
Expand All @@ -25,8 +23,17 @@ jobs:
distribution: 'temurin'
architecture: x64

- name: Build
- uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
"id": "vouncherstudios-repository-snapshots",
"username": "${{ secrets.REPOSITORY_USERNAME }}",
"password": "${{ secrets.REPOSITORY_PASSWORD }}"
}]
- name: Build and Deploy
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
./acf build
./acf deploy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Maven Package
name: Java CI with Maven

on:
push:
pull_request:
branches: [ "master" ]

jobs:
Expand All @@ -23,17 +23,8 @@ jobs:
distribution: 'temurin'
architecture: x64

- uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
"id": "vouncherstudios-repository-snapshots",
"username": "${{ secrets.REPOSITORY_USERNAME }}",
"password": "${{ secrets.REPOSITORY_PASSWORD }}"
}]
- name: Deploy
- name: Build
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
./acf deploy
./acf build

0 comments on commit 7bbe0fb

Please sign in to comment.