Initial commit: Hugo blog with PaperMod theme
All checks were successful
Build and Deploy Hugo Blog / build (push) Successful in 5m0s
All checks were successful
Build and Deploy Hugo Blog / build (push) Successful in 5m0s
This commit is contained in:
40
.gitea/workflows/build-deploy.yml
Normal file
40
.gitea/workflows/build-deploy.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Build and Deploy Hugo Blog
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
extended: true
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build site
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to hosting
|
||||
run: |
|
||||
# À adapter selon votre hébergement
|
||||
# Exemple avec rsync ou autre solution
|
||||
echo "Deploy step"
|
||||
Reference in New Issue
Block a user