wiki/.forgejo/workflows/build.yaml
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 }}