Skip to content

Commit

Permalink
chore: PR 생성 시 동작하는 CI steps 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Wo-ogie committed Jul 28, 2024
1 parent d233e7a commit ffa47f6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI for dev

on:
pull_request:
branches: [ "develop" ]

permissions:
contents: read

jobs:
deploy:
name: CI
runs-on: ubuntu-latest
environment: production

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Copy Secret
env:
CREATE_SECRET: ${{secrets.ENV_DEV}}
CREATE_SECRET_DIR: src/main/resources
CREATE_SECRET_DIR_FILE_NAME: env.properties
run: echo $CREATE_SECRET | base64 --decode > $CREATE_SECRET_DIR/$CREATE_SECRET_DIR_FILE_NAME

- name: Build with Gradle
run: ./gradlew build

0 comments on commit ffa47f6

Please sign in to comment.