MohGanji is Deploying website 🚀 #62
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: Deploy | |
run-name: ${{ github.actor }} is Deploying website 🚀 | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
pull-updates: | |
runs-on: self-hosted | |
steps: | |
- run: echo "🎉 Deploying on server..." | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
# Runs a single command using the runners shell | |
- name: Run a git pull | |
run: cd /var/www/ganji.blog && git pull origin master | |
- run: echo "🍏 Job done ${{ job.status }}." |