From 2dd65b7b48c9ab517b01208e3fc7c0806c0ef0bb Mon Sep 17 00:00:00 2001 From: SauravDhakal Date: Wed, 1 Apr 2026 13:10:14 +0545 Subject: [PATCH] chore: add woodpecker --- .github/workflows/deploy.yml | 34 ---------------------------------- .woodpecker.yml | 7 +++++++ 2 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .woodpecker.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index cec45b5..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Deploy Hugo Site - -on: - push: - branches: - - master - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 - with: - hugo-version: "latest" - extended: true - - - name: Build site - run: hugo build --minify - - - name: Deploy via rsync - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ secrets.SSH_HOST }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.SSH_KEY }} - port: ${{ secrets.SSH_PORT }} - source: "public/*" - target: "/var/www/portfolio" - strip_components: 1 diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a296851 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,7 @@ +steps: + build: + image: hugomods/hugo:latest + commands: + - hugo --minify --destination /site/public + volumes: + - /home/saurav/site:/site # writes directly to where Caddy serves from