forked from bbenz/devopsforjavashops-TestFeatureFlags
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprovided-github-workflow.yml
More file actions
37 lines (29 loc) · 1.06 KB
/
provided-github-workflow.yml
File metadata and controls
37 lines (29 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Working GitHub Action: # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy JAR app to Azure Web App - <your web app name here>
env: # Or as an environment variable
APP_CONFIGURATION_CONNECTION_STRING: ${{ secrets.APP_CONFIGURATION_CONNECTION_STRING }}
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Java version
uses: actions/setup-java@v1
with:
java-version: '11'
- name: Build with Maven
run: mvn clean install
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: '<your web app name here>'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_8cbbe98132394af1a139a3f9d4ce8345 }}
package: '${{ github.workspace }}/target/*.jar'
© 2021 GitHub, Inc.