added workflow
This commit is contained in:
24
.gitea/workflows/blog-deploy.yaml
Normal file
24
.gitea/workflows/blog-deploy.yaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Hugo deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /var/lib/hugo/blog
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
retrieve-and-execute:
|
||||||
|
runs-on: self-hosted
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Checkout the repository
|
||||||
|
- name: Checkout Repository
|
||||||
|
run: git pull https://git.assilvestrar.club/lourenco/assilvestrar-blog.git master
|
||||||
|
|
||||||
|
# Execute your command
|
||||||
|
- name: Build hugo
|
||||||
|
run: hugo build
|
||||||
Reference in New Issue
Block a user