Skip to content

Instantly share code, notes, and snippets.

@serafdev
Created March 30, 2020 05:49
Show Gist options
  • Save serafdev/edd752eda7021370cf4a05e3a797e395 to your computer and use it in GitHub Desktop.
Save serafdev/edd752eda7021370cf4a05e3a797e395 to your computer and use it in GitHub Desktop.
name: Minecraft Config CI/CD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test SSH Command
uses: appleboy/ssh-action@v0.0.7
with:
# Goes into your configuration files and gets the latest changes from github
script: cd ~/mineconf && git stash && git pull && sudo systemctl restart minecraft && ls -la
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment