This commit is contained in:
parent
3c8721d706
commit
58b84c2451
@ -1,17 +1,11 @@
|
|||||||
name: Deploy Production Server
|
name: Deploy Production Server
|
||||||
|
|
||||||
# Only run the workflow when a PR is merged on main and closed
|
# Only run the workflow when a PR is merged on main and closed
|
||||||
on:
|
on: [push]
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- closed
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
|
|
||||||
# Here we check that the PR was correctly merged to main
|
# Here we check that the PR was correctly merged to main
|
||||||
jobs:
|
jobs:
|
||||||
if_merged:
|
if_merged:
|
||||||
if: github.event.pull_request.merged == true
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -19,7 +13,7 @@ jobs:
|
|||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17.0.12'
|
||||||
distribution: 'graalvm'
|
distribution: 'graalvm'
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user