Skip to content

Update deploy.yml

Update deploy.yml #2

Workflow file for this run

name: Deploy
on:
push:
branches:
- main # 메인 브랜치에 푸시할 때마다 워크플로우 실행
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Deploy to JitPack
run: ./gradlew publish
- name: Notify deployment success
run: echo "Deployment to JitPack was successful!"