fix(#23) : 해시태그 서점id->name 변경 #96
Workflow file for this run
This file contains hidden or 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 : Deploy to EC2 | ||
| on: | ||
| push: | ||
| branches: | ||
| - develop | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| -name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| -name: Set up JDK | ||
| uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '17' | ||
| -name: Build whth Gradle | ||
| run: | | ||
| chmod +x gradlew | ||
| ./gradlew build | ||
| -name: Copy files to EC2 | ||
| uses: appleboy/[email protected] | ||
| with: | ||
| host: ${{ secrets.EC2_HOST }} | ||
| username: ubuntu | ||
| key: ${{ secrets.EC2_PRIVATE_KEY }} | ||
| source: "build/libs/*.jar" | ||
| target: "/home/ubuntu/myapp" | ||
| -name: Run deploy script on EC2 | ||
| uses: appleboy/[email protected] | ||
| with: | ||
| host: ${{ secrets.EC2_HOST }} | ||
| username: ubuntu | ||
| key: ${{ secrets.EC2_PRIVATE_KEY }} | ||
| script: | | ||
| cd /home/ubuntu/myapp | ||
| chmod +x deploy.sh | ||
| ./deploy.sh | ||