forked from Skynet/wiki
silver
7eeb861097
chore: update to point to the new name of the flake Signed-off-by: silver <silver@skynet.ie>
34 lines
No EOL
820 B
YAML
34 lines
No EOL
820 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: 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 }} |