Skip to content

Update server_cicd.yml #16

Update server_cicd.yml

Update server_cicd.yml #16

Workflow file for this run

# .github/workflows/ci-cd.yml
name: server CI/CD Pipeline
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: server
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: '8.8'
build-root-directory: server
- name: Run chmod to make gradlew executable
working-directory: ./server
run: chmod +x server/gradlew
- name: Build with Gradle
working-directory: ./server
run: server/gradlew build -x test
- name: Deploy
if: success()
run: echo "Deploy your application here"