Skip to content

[FEAT] ์Šฌ๋ž™ ์•Œ๋ฆผ, Swagger+Restdocs API ๋ฌธ์„œ ์ž๋™ํ™” ์—ฐ๋™ #11

[FEAT] ์Šฌ๋ž™ ์•Œ๋ฆผ, Swagger+Restdocs API ๋ฌธ์„œ ์ž๋™ํ™” ์—ฐ๋™

[FEAT] ์Šฌ๋ž™ ์•Œ๋ฆผ, Swagger+Restdocs API ๋ฌธ์„œ ์ž๋™ํ™” ์—ฐ๋™ #11

Workflow file for this run

name: CI
on: # ํŠธ๋ฆฌ๊ฑฐ
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build: # job#1
runs-on: ubuntu-22.04
env:
working-directory: ./ # ํ”„๋กœ์ ํŠธ ๋””๋ ‰ํ† ๋ฆฌ
steps: # ์ž‘์—… ๋‹จ์œ„
- name: ์ฒดํฌ์•„์›ƒ
uses: actions/checkout@v3
- name: Java ์‹คํ–‰ ํ™˜๊ฒฝ - JDK 17 ์„ธํŒ…
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: application.yml ํŒŒ์ผ ์ƒ์„ฑ
run: |
# yml์„ ์ƒ์„ฑํ•  ๋””๋ ‰ํ„ฐ๋ฆฌ๋กœ ์ž‘์—… ๋””๋ ‰ํ„ฐ๋ฆฌ ์ด๋™
cd ./src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application-deploy.yml
working-directory: ${{ env.working-directory }}
- name: ๋นŒ๋“œ
run: |
chmod +x gradlew
./gradlew build
working-directory: ${{ env.working-directory }}
shell: bash