fix : 게시글 작성자도 게시글을 삭제할 수 있도록 수정 #143
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 동문네트워크 백엔드 CI 테스트 자동화(main bracnh PR 시 작동) | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build in Github Actions | |
runs-on: ubuntu-22.04 | |
steps: | |
# 작업 엑세스 가능하게 $GITHUB_WORKSPACE에서 저장소를 체크아웃 | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
# java 버전 세팅(JDK 17) | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
# git ignore한 yml 파일들 github secret에서 복사해 오기 | |
- name: Copy secret | |
env: | |
APPLICATION_FILE: ${{ secrets.APPLICATION_PROFILE_DEV }} | |
APPLICATION_DEV_FILE: ${{secrets.APPLICATION_DEV}} | |
DIR: ./src/main/resources | |
APPLICATION_FILE_NAME: application.yml | |
APPLICATION_DEV_FILE_NAME: application-dev.yml | |
run: | | |
touch $DIR/$APPLICATION_FILE_NAME | |
touch $DIR/$APPLICATION_DEV_FILE_NAME | |
echo "$APPLICATION_FILE" > $DIR/$APPLICATION_FILE_NAME | |
echo "$APPLICATION_DEV_FILE" > $DIR/$APPLICATION_DEV_FILE_NAME | |
# gradlew 실행 권한 부여 | |
- name: Run chmod to make gradlew executable | |
run: chmod +x ./gradlew | |
shell: bash | |
# Build -> jar 파일 생성 | |
- name: Build with Gradle | |
run: ./gradlew clean build -x test | |
shell: bash | |
- name: Upload Build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: | | |
build/libs/*.jar |