chore: add woodpecker
This commit is contained in:
34
.github/workflows/deploy.yml
vendored
34
.github/workflows/deploy.yml
vendored
@@ -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
|
|
||||||
7
.woodpecker.yml
Normal file
7
.woodpecker.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user