Add deployment action
All checks were successful
Homepage deployment / deploy (push) Successful in 1m30s
All checks were successful
Homepage deployment / deploy (push) Successful in 1m30s
Move to root Foo Move to root Setup go Minio More minio Fix vars
This commit is contained in:
parent
5e49502283
commit
2d1d842738
13 changed files with 40 additions and 13 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
name: Homepage deployment
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "^1.23.3"
|
||||||
|
- name: Setup Minio Client
|
||||||
|
run: wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && cp mc /usr/local/bin
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: https://github.com/peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: "0.139.3"
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify
|
||||||
|
- name: Add Minio credentials
|
||||||
|
run: mc alias set deploy "${{ vars.MINIO_ENDPOINT }}" "${{ secrets.MINIO_ACCESS_KEY }}" "${{ secrets.MINIO_SECRET_KEY }}"
|
||||||
|
- name: Deploy
|
||||||
|
run: mc mirror --overwrite ./public deploy/homepage-source
|
14
.gitignore
vendored
14
.gitignore
vendored
|
@ -1,2 +1,16 @@
|
||||||
.env
|
.env
|
||||||
.direnv/
|
.direnv/
|
||||||
|
|
||||||
|
# Generated files by hugo
|
||||||
|
/public/
|
||||||
|
/resources/_gen/
|
||||||
|
/assets/jsconfig.json
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
|
# Executable may be added to repository
|
||||||
|
hugo.exe
|
||||||
|
hugo.darwin
|
||||||
|
hugo.linux
|
||||||
|
|
||||||
|
# Temporary lock file while building
|
||||||
|
/.hugo_build.lock
|
||||||
|
|
13
hugo/.gitignore
vendored
13
hugo/.gitignore
vendored
|
@ -1,13 +0,0 @@
|
||||||
# Generated files by hugo
|
|
||||||
/public/
|
|
||||||
/resources/_gen/
|
|
||||||
/assets/jsconfig.json
|
|
||||||
hugo_stats.json
|
|
||||||
|
|
||||||
# Executable may be added to repository
|
|
||||||
hugo.exe
|
|
||||||
hugo.darwin
|
|
||||||
hugo.linux
|
|
||||||
|
|
||||||
# Temporary lock file while building
|
|
||||||
/.hugo_build.lock
|
|
Loading…
Reference in a new issue