CI: use forgejo actions

This commit is contained in:
Dorian Zedler 2023-09-06 20:24:20 +02:00
parent 415cfe6808
commit b858349631
Signed by: dorian
GPG Key ID: 989DE36109AFA354
2 changed files with 25 additions and 42 deletions

View File

@ -1,42 +0,0 @@
---
kind: pipeline
name: production
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --minify
- name: publish
image: itsblue.dev/plugins/codeberg-pages-deploy
settings:
folder: public
ssh_key:
from_secret: gitea-ssh-key
trigger:
branch:
- main
---
kind: pipeline
name: dev
steps:
- name: build
image: klakegg/hugo:ext-alpine-ci
commands:
- hugo --config config.dev.yaml --minify
- rm public/.domains
- name: publish
image: itsblue.dev/plugins/codeberg-pages-deploy
settings:
folder: public
git_branch: pages-dev
ssh_key:
from_secret: gitea-ssh-key
trigger:
branch:
- dev

View File

@ -0,0 +1,25 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo.git@v2
with:
hugo-version: "latest"
extended: true
- name: Build
run: |
hugo --minify
- name: Deploy
uses: https://itsblue.dev/actions/codeberg-pages-deploy@v1
with:
folder: ./build