This commit is contained in:
parent
9849e95209
commit
afa9c9d140
4 changed files with 39 additions and 23 deletions
30
.forgejo/workflows/deploy.yaml
Normal file
30
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: congo
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: https://github.com/peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: "0.90.1"
|
||||
extended: true
|
||||
|
||||
- name: Clone theme
|
||||
run: git submodule update --init --recursive
|
||||
|
||||
- name: Hugo build
|
||||
run: hugo -v
|
||||
|
||||
- name: Rsync Deployments Action
|
||||
uses: https://github.com/Burnett01/rsync-deployments@5.2
|
||||
with:
|
||||
switches: -avzr --delete
|
||||
path: public/
|
||||
remote_path: ${{ secrets.remote_path }}
|
||||
remote_host: ${{ secrets.remote_host }}
|
||||
remote_user: ${{ secrets.remote_user }}
|
||||
remote_key: ${{ secrets.remote_key }}
|
|
@ -1,14 +0,0 @@
|
|||
branches: main
|
||||
|
||||
labels:
|
||||
hostname: "oscarblue"
|
||||
|
||||
pipeline:
|
||||
deploy:
|
||||
image: alpine:3.16.0
|
||||
commands:
|
||||
- apk add hugo rsync
|
||||
- hugo
|
||||
- rsync -rltvz --delete --omit-dir-times ./public/ /oscar.blue/
|
||||
volumes:
|
||||
- /var/www/oscar.blue:/oscar.blue
|
Binary file not shown.
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 132 KiB |
|
@ -10,15 +10,15 @@
|
|||
# overridden by providing a weight value. The menu will then be
|
||||
# ordered by weight from lowest to highest.
|
||||
|
||||
# [[main]]
|
||||
# name = "Blog"
|
||||
# pageRef = "posts"
|
||||
# weight = 10
|
||||
#
|
||||
# [[main]]
|
||||
# name = "Tutorials"
|
||||
# pageRef = "tutorials"
|
||||
# weight = 20
|
||||
[[main]]
|
||||
name = "Blog"
|
||||
pageRef = "posts"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
name = "Tutorials"
|
||||
pageRef = "tutorials"
|
||||
weight = 20
|
||||
|
||||
[[main]]
|
||||
name = "About"
|
||||
|
|
Loading…
Reference in a new issue