Deploy pastebin

📅 2022-01-16T19:57:02.000Z
👁️ 311 katselukertaa
🔓 Julkinen




name: Deploy to server

on:
  push:
    branches: [ master ]
  workflow_dispatch:

jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: executing remote ssh commands using password
      uses: appleboy/ssh-action@master
      with:
        host: ${{ secrets.HOST }}
        username: ${{ secrets.USERNAME }}
        key: ${{ secrets.KEY }}
        port: 22
        script: |
          cd /root/PowerPaste
          git pull
          docker-compose up -d --build