35 lines
842 B
YAML
35 lines
842 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- flake.*
|
|
- src/**/*
|
|
- .forgejo/**/*
|
|
- mkdocs.yml
|
|
|
|
jobs:
|
|
# Build it locally, this helps caching for later
|
|
build:
|
|
runs-on: nix
|
|
steps:
|
|
# get the repo first
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
- uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet/get_lfs@v3
|
|
with:
|
|
repository: ${{ gitea.repository }}
|
|
ref_name: ${{ gitea.ref_name }}
|
|
- name: "Build the Wiki"
|
|
run: nix build --verbose
|
|
|
|
# deploy it upstream
|
|
deploy:
|
|
runs-on: docker
|
|
needs: [ build ]
|
|
steps:
|
|
- uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet/deploy@v3
|
|
with:
|
|
input: 'skynet_website_wiki'
|
|
token: ${{ secrets.API_TOKEN_FORGEJO }}
|