frostfs.info/.forgejo/workflows/build.yml
Vitaliy Potyarkin 4eb40cbcb5 [#] Build the site in Forgejo Actions
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-08-28 13:48:35 +03:00

34 lines
662 B
YAML

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