feat: 뉴스 컨텐츠 수정 기능 추가 (#64) (#68) #23
This file contains 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: cd-back-dev | |
on: | |
push: | |
branches: | |
- dev | |
paths: 'src/**' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set timezone | |
uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Seoul" | |
- name: repository checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.SUBMODULE_TOKEN }} | |
- name: install java 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: assign grant gradlew | |
run: chmod +x gradlew | |
- name: build with gradle for rest docs | |
run: ./gradlew build | |
- name: build with gradle | |
run: ./gradlew build | |
- name: deploy use scp | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{vars.SCKR_DEV_IP}} | |
username: ${{secrets.SCKR_DEV_USERNAME}} | |
key: ${{secrets.SCKR_DEV_SSH_KEY}} | |
source: "./build/libs/*.jar" | |
target: ${{ vars.SCKR_DEV_JAR_DIR }} | |
strip_components: 2 | |
- name: run application use ssh | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{vars.SCKR_DEV_IP}} | |
username: ${{secrets.SCKR_DEV_USERNAME}} | |
key: ${{secrets.SCKR_DEV_SSH_KEY}} | |
script_stop: true | |
script: ${{ vars.SCKR_DEV_DEPLOY_COMMAND }} |