CI: use forgejo actions
This commit is contained in:
parent
415cfe6808
commit
b858349631
42
.drone.yml
42
.drone.yml
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue