Skip to content

Improve how a repository is displayed in the calendar #7

Improve how a repository is displayed in the calendar

Improve how a repository is displayed in the calendar #7

name: Build and deploy
on:
push:
branches:
- main
jobs:
build:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'liberica'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@27152f6fa06a6b8062ef7195c795692e51fc2c81
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew build
- name: Set up Azure
uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d
with:
creds: ${{ secrets.AZURE_CREDENTIALS_SPRING_TEAM }}
- name: Set up Azure Spring Extension
run: az extension add --name spring
- name: Deploy
run: |
az spring app deploy \
--name calendar \
--service spring-team \
--resource-group spring-team \
--artifact-path build/libs/spring-calendar.jar