This commit is contained in:
25
.gitea/workflows/push.yml
Normal file
25
.gitea/workflows/push.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Push changes to production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/act
|
||||
chmod 600 ~/.ssh/act
|
||||
|
||||
- name: Push to server
|
||||
run: |
|
||||
scp *.html ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/www/shadeouts.net/ -i ~/.ssh/act -o StrictHostKeyChecking=no
|
||||
Reference in New Issue
Block a user