Initial Workflow
Some checks failed
/ deploy (push) Failing after 10s

This commit is contained in:
Sangelo 2024-01-10 16:24:17 +01:00
parent 39152ef857
commit 6017e48c8b
2 changed files with 33 additions and 0 deletions

View file

@ -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/'

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.vscode/
public/ public/
resources/_gen/ resources/_gen/