wiki/.forgejo/workflows/build.yaml
Brendan Golden 51a7cfd8dd
All checks were successful
Build / build (push) Successful in 6s
Build / deploy (push) Successful in 7s
ci: documentation
2024-08-08 14:56:35 +01:00

31 lines
No EOL
637 B
YAML

name: Build
on:
push:
branches:
- 'main'
paths:
- flake.*
- src/**/*
- .forgejo/**/*
jobs:
# Build it locally, this helps caching for later
build:
runs-on: nix
steps:
# get the repo first
- uses: actions/checkout@v4
- name: "Build the Wiki"
run: nix build --verbose
# deploy it upstream
deploy:
runs-on: docker
needs: [ build ]
steps:
- name: "Deploy to Skynet"
uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet@v2
with:
input: 'skynet_website_renew'
token: ${{ secrets.API_TOKEN_FORGEJO }}