Initial Hugo site with Gitea Actions deploy workflow
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 1m5s
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 1m5s
This commit is contained in:
23
.gitea/workflows/hugo-deploy.yml
Normal file
23
.gitea/workflows/hugo-deploy.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Hugo Build & Deploy
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: klakegg/hugo:ext-alpine
|
||||
volumes:
|
||||
- /var/www/blog.bojemoi.me:/deploy
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Hugo site
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to web root
|
||||
run: |
|
||||
rm -rf /deploy/*
|
||||
cp -r public/* /deploy/
|
||||
echo "Deployed $(date -u '+%Y-%m-%d %H:%M:%S UTC')" > /deploy/.deployed
|
||||
Reference in New Issue
Block a user