chore: 테스트 서버 배포 스크립트 작성 (#184) #1
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 toothlessdev | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ develop ] | |
| jobs: | |
| deploy: | |
| environment: development | |
| runs-on: toothlessdev | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 17 | |
| - name: Create .env.dev file | |
| run: | | |
| touch .env.dev | |
| echo "${{ secrets.ENV }}" >> .env.dev | |
| - name: Cache Gradle packages | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} | |
| - name: Build with Gradle | |
| run: ./dev.sh | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: build/test-results/**/*.xml |