Test Commit for Auto Deploy Action
This commit is contained in:
parent
33808c9d47
commit
10aab63a8f
2 changed files with 30 additions and 6 deletions
|
|
@ -1,6 +0,0 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: echo All good!
|
||||
30
.forgejo/workflows/deploy.yaml
Normal file
30
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Deploy Hugo Site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:3.20
|
||||
|
||||
steps:
|
||||
- name: Install dependencies and Hugo
|
||||
run: |
|
||||
# apk add --no-cache curl bash git libc6-compat
|
||||
|
||||
# Install Hugo (Refer to https://gohugo.io/installation/linux/)
|
||||
doas apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community hugo
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Hugo site
|
||||
run: hugo --minify
|
||||
|
||||
# - name: Copy site to host directory
|
||||
# run: |
|
||||
# mkdir -p /mnt/host-output/hugo-site # TODO make sure to mount correct directory to actions setup
|
||||
# cp -r public/* /mnt/host-output/hugo-site/
|
||||
Loading…
Add table
Add a link
Reference in a new issue