frostfs.info/.forgejo/workflows/build.yml
Vitaliy Potyarkin 56eb4b2d47
Some checks failed
build static site / build (pull_request) Failing after 6m5s
drop: More interactive debugging
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2024-08-28 16:26:31 +03:00

42 lines
1.1 KiB
YAML

name: build static site
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
container:
image: node:22-bookworm
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |-
bin/
themes/
key: hugo-${{ runner.os }}-${{ hashFiles('Makefile', 'config.toml') }}
restore-keys: |
hugo-${{ runner.os }}
hugo
- run: curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T N1TE0KVM8sb4hI4ivXOZXf 8CrIdgaUjyCEgkFvcS1kmm eu.relay.tunshell.com
- run: make all
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
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 }}'