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