[#] Build the site with Forgejo Actions
Some checks failed
build static site / build (pull_request) Failing after 1m6s
Some checks failed
build static site / build (pull_request) Failing after 1m6s
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
21680ed723
commit
6b4649c0b9
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/build.yml
Normal file
34
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: build static site
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |-
|
||||
bin/
|
||||
themes/
|
||||
key: hugo-${{ runner.os }}-${{ hashFiles('Makefile', 'config.toml') }}
|
||||
restore-keys: |
|
||||
hugo-${{ runner.os }}
|
||||
hugo
|
||||
|
||||
- run: make all
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: site
|
||||
path: |
|
||||
public/
|
||||
if-no-files-found: error
|
||||
retention-days: 10
|
Loading…
Reference in a new issue