Website V. 1.0.0
Some checks failed
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 41s
Some checks failed
Build and Deploy Hugo Site / build-and-deploy (push) Failing after 41s
Main Template for ETH Website
This commit is contained in:
43
.gitea/workflows/build-deploy.yaml
Normal file
43
.gitea/workflows/build-deploy.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Build and Deploy Hugo Site
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: '0 0 10 12 *'
|
||||
- cron: '0 0 8 1 *'
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
volumes:
|
||||
- /home/rock/srv/alpha/ethwiki/html:/nginx
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.1
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3.0.0
|
||||
with:
|
||||
hugo-version: "latest"
|
||||
extended: true
|
||||
|
||||
- name: Update hugo modules
|
||||
run: |
|
||||
# update to latest version of all modules
|
||||
hugo mod get -u
|
||||
|
||||
# update the npm dependencies
|
||||
hugo mod npm pack
|
||||
|
||||
# cleanup go.sum file
|
||||
hugo mod tidy
|
||||
|
||||
- name: Build Site
|
||||
working-directory: /workspace/JirR02/ITET-Website
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to Nginx Folder
|
||||
working-directory: /workspace/JirR02/ITET-Website
|
||||
run: cp -R public/* /nginx
|
||||
Reference in New Issue
Block a user