Skip to content

Commit

Permalink
chore: 배포 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kariskan committed Aug 22, 2024
1 parent 0ab93e5 commit 5cc36be
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

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

- name: Display environment information
run: |
echo "PATH: $PATH"
echo "SHELL: $SHELL"
which chmod
ls -l /usr/bin/chmod
- name: Grant execute permission for gradlew
run: |
ls -l
/usr/bin/chmod +x gradlew
distribution: 'julu'

- name: Create application-secret.yml
run: echo "${{ secrets.SECRET }}" > src/main/resources/application-secret.yml

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

- name: Build with Gradle
run: ./gradlew build -x test
run: ./gradlew clean build -x test

- name: Copy jar to EC2
env:
Expand Down

0 comments on commit 5cc36be

Please sign in to comment.