From fdf556afa77b31cb2f6f5a88ecbcac126e77ed8c Mon Sep 17 00:00:00 2001 From: Cyper Date: Fri, 20 Jun 2025 00:33:15 -0400 Subject: [PATCH] Attempt #1 for runner --- .gitea/workflows/deploy.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..2467f12 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,22 @@ +name: Deploy Blog to Folder + +on: + push: + branches: + - main # or your target branch + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Deploy folder + run: | + echo "Deploying src/_site folder..." + ls -la + rm -rf /var/sites/cy.cyper.cc/www/html/* + mv ./src/_site /var/sites/cy.cyper.cc/www/html + rm -rf . \ No newline at end of file