Setup GiteaAction to deploy website.
This commit is contained in:
parent
b694bed505
commit
8f19c0a259
33
.gitea/workflows/dev.yml
Normal file
33
.gitea/workflows/dev.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Deploy Hugo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: '0.120.4'
|
||||||
|
extended: true
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify --e development
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: AnimMouse/setup-rclone@v1
|
||||||
|
with:
|
||||||
|
rclone_config: ${{ secrets.RCLONE_CONFIG }}
|
||||||
|
|
||||||
|
- run: rclone copy public/ remote:staging
|
||||||
Loading…
x
Reference in New Issue
Block a user