workflow test #2
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 VPS | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-via-tailscale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Connect Tailscale | |
uses: tailscale/github-action@v2 | |
with: | |
# Your Tailscale authentication key, from the admin panel. | |
authkey: ${{ secrets.TAILSCALE_AUTHKEY_CLOUDNODE }} | |
# Tailscale version to use. | |
version: '1.46.1' | |
# Build | |
- name: Pull latest changes on VPS | |
uses: appleboy/ssh-action@master | |
with: | |
host: ktz-cloud | |
USERNAME: ${{ secrets.VPS_DEPLOY_USER }} | |
script: cd ${{ secrets.VPS_PROJECT_PATH }} && git pull | |
- name: Build on VPS | |
uses: appleboy/ssh-action@master | |
with: | |
host: ktz-cloud | |
USERNAME: ${{ secrets.VPS_DEPLOY_USER }} | |
script: cd ${{ secrets.VPS_PROJECT_PATH }} && docker-compose run pms-wiki build |