From 4eb40cbcb595c67f1000affb72c0dca5944e92e8 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Wed, 28 Aug 2024 13:48:01 +0300 Subject: [PATCH] [#] Build the site in Forgejo Actions Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .forgejo/workflows/build.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..2f3228c --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -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