Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: Deploy App to Azure App Service

on:
push:
branches:
- deploy-to-azure-app-service

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build Project
run: mvn clean install -DskipTests
- name: Upload Artifacct for deployment job
uses: actions/upload-artifact@v2
with:
name: springboot-example
path: ${{ github.workspace }}/target/*.jar
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Artifact from build job
uses: actions/download-artifact@v2
with:
name: springboot-example
- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
with:
app-name: kranthipep
publish-profile: ${{ secrets.KRANTHI_SECRET }}
package: '*.jar'