Created
March 30, 2020 05:49
-
-
Save serafdev/edd752eda7021370cf4a05e3a797e395 to your computer and use it in GitHub Desktop.
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: 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