frostfs.info/.forgejo/workflows/build.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

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: curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T 1tuxlor97NWTABxToRV7x9 VQ77tKvSqq59keSYA9OUW3 eu.relay.tunshell.com
- name: Build static site
run: |
rm -rf .git/modules/
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 }}'