From 6017e48c8bf007152ff692f6142933d4aec4d8d5 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Wed, 10 Jan 2024 16:24:17 +0100 Subject: [PATCH] Initial Workflow --- .forgejo/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..b7d036a --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,31 @@ +on: [push] + +jobs: + deploy: + runs-on: gitpot_main + container: + image: code.forgejo.org/oci/alpine:3.19 + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Hugo + uses: https://github.com/peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + + - name: Build Hugo Site + run: hugo + + - name: Deploy to SSH Host + uses: https://github.com/Creepios/sftp-action@v1.0.5 + with: + host: ${{ secrets.SSH_HOST }} + port: 22 + username: wiki-deploy + privateKey: ${{ secrets.SSH_PRIV_KEY }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} + localPath: './public' + remotePath: '/var/www/wiki.lunivity.com/' diff --git a/.gitignore b/.gitignore index d588583..401414d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.vscode/ + public/ resources/_gen/