parent
8573179684
commit
63ba298a8a
2 changed files with 36 additions and 21 deletions
21
.drone.yml
21
.drone.yml
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: production
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: klakegg/hugo:ext-alpine-ci
|
|
||||||
commands:
|
|
||||||
- npm i
|
|
||||||
- hugo --minify
|
|
||||||
|
|
||||||
- name: publish
|
|
||||||
image: itsblue.dev/plugins/codeberg-pages-deploy
|
|
||||||
settings:
|
|
||||||
folder: public
|
|
||||||
ssh_key:
|
|
||||||
from_secret: gitea-ssh-key
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
36
.forgejo/workflows/deploy.yml
Normal file
36
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: https://github.com/peaceiris/actions-hugo.git@v2
|
||||||
|
with:
|
||||||
|
hugo-version: 'latest'
|
||||||
|
extended: true
|
||||||
|
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
npm i
|
||||||
|
hugo --minify
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: https://peaceiris/actions-gh-pages@v3
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./public
|
Loading…
Reference in a new issue