mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
docs: add documentation
This commit is contained in:
39
.github/workflows/publish-docs.yml
vendored
Normal file
39
.github/workflows/publish-docs.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Publish Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
paths: ['docs/**']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: Domain Watchdog Documentation
|
||||
url: https://domainwatchdog.eu
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install --global yarn && yarn install
|
||||
|
||||
- name: Build Astro site
|
||||
run: yarn run build
|
||||
|
||||
- name: Upload build via SCP
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: dw1.srv.domainwatchdog.eu
|
||||
port: 2004
|
||||
username: deploy
|
||||
key: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
|
||||
source: "dist/*"
|
||||
target: /var/www/domainwatchdog.eu/
|
||||
overwrite: true
|
||||
debug: true
|
||||
Reference in New Issue
Block a user