Added a script to Plausible analytics hosted on personal VPS #3
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 to Personal VPS | |
#! Since this is a public repository, DO NOT use a job that runs on pull request | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
deploy: | |
name: Deploy Personal Blog | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Build and deploy compose file | |
run: | | |
docker-compose down | |
docker-compose up -d --build |