Skip to content

GitHub Actionsを使ってみるテスト #1

GitHub Actionsを使ってみるテスト

GitHub Actionsを使ってみるテスト #1

Workflow file for this run

# 参考: https://qiita.com/caesar2015/items/139da7e6eacd72b030c8
name: deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ssh and deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST_YUSUKEKATOJP }}
username: ${{ secrets.SSH_USERNAME_YUSUKEKATOJP }

Check failure on line 15 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 15, Col: 21): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
key: ${{ secrets.SSH_PRIVATE_KEY_YUSUKEKATOJP }}
port: ${{ secrets.SSH_PORT_YUSUKEKATOJP }}
passphrase: ${{ secrets.SSH_PASSPHRASE_YUSUKEKATOJP }}
debug: true
script: |
cd ~/public_html/yusukekato.jp/YusukeKatoBlog/
git checkout main
git pull origin main
cd scripts/
bash ./server_update.bash