frostfs.info/.forgejo/workflows/build.yml
Vitaliy Potyarkin b562512742
All checks were successful
build static site / build (pull_request) Successful in 26s
squash: Green CI again?
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-08-28 17:03:17 +03:00

43 lines
1,015 B
YAML

name: build static site
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
container:
image: node:22-bookworm
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: |
git submodule sync
rm -rf themes/dot-hugo
make all
- uses: actions/upload-artifact@v3
id: artifact-upload-step
with:
name: site
path: |
public/
if-no-files-found: error
retention-days: 10
- name: Show artifact URL
run: |
echo 'Download URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}'