Merge pull request #202 from twin-te/dev #110
Workflow file for this run
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: Deploy | |
on: | |
push: | |
branches: | |
- master # masterブランチにpushされた場合に起動 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SSH key | |
uses: shimataro/[email protected] | |
with: # shimataro/ssh-key-actionに渡すパラメーター | |
private-key: ${{ secrets.SSH_KEY }} # 必須 | |
public-key: ${{ secrets.SSH_KEY_PUBLIC }} # 必須 | |
name: id_rsa # 省略可 | |
known-hosts: ${{ secrets.KNOWN_HOSTS }} # 省略可 | |
- name: run deploy script | |
run: ${{ secrets.SSH_SCRIPT }} | |
- name: Slack Notification | |
uses: homoluctus/[email protected] | |
if: always() | |
with: | |
type: ${{ job.status }} | |
job_name: '本番サーバーへのデプロイ' | |
url: ${{ secrets.SLACK_WEBHOOK }} |