From 80c21c911d10e62408daec33f80148da7c91164d Mon Sep 17 00:00:00 2001 From: phantom Date: Thu, 18 Dec 2025 04:00:02 -0600 Subject: [PATCH] Gitea Actions --- .gitea/workflows/push.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/push.yml diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml new file mode 100644 index 0000000..cbecd89 --- /dev/null +++ b/.gitea/workflows/push.yml @@ -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