Update build_and_deploy.yml

This commit is contained in:
Filip Koňařík
2023-09-27 10:28:31 +02:00
committed by GitHub
parent 07bc7f9a8b
commit cb58273bdd

View File

@@ -3,8 +3,11 @@ name: Build & Deploy
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: oauth-playground.online
url: https://sso.oauth-playground.online
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Java JDK - name: Setup Java JDK
@@ -14,13 +17,6 @@ jobs:
java-version: '20' java-version: '20'
- name: Build project - name: Build project
run: ./mvnw install run: ./mvnw install
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: oauth-playground.online
url: https://sso.oauth-playground.online
steps:
- name: Install SSH Key - name: Install SSH Key
uses: shimataro/ssh-key-action@v2 uses: shimataro/ssh-key-action@v2
with: with: