Skip to content

Merge pull request #202 from twin-te/dev #110

Merge pull request #202 from twin-te/dev

Merge pull request #202 from twin-te/dev #110

Workflow file for this run

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 }}