wiki/.forgejo/workflows/build.yaml

30 lines
582 B
YAML
Raw Normal View History

2024-08-08 13:13:28 +00:00
name: Build
# Build it locally
2024-08-08 13:44:32 +00:00
on:
push:
branches:
- 'main'
paths:
- flake.*
- src/**/*
- .forgejo/**/*
2024-08-08 13:13:28 +00:00
jobs:
build:
runs-on: nix
steps:
2024-08-08 13:44:32 +00:00
# get the repo first
- uses: actions/checkout@v4
2024-08-08 13:13:28 +00:00
- name: "Build the Wiki"
2024-08-08 13:44:32 +00:00
run: nix build --verbose
deploy:
runs-on: docker
needs: [ build ]
steps:
- name: "Deploy to Skynet"
2024-08-08 13:48:34 +00:00
uses: https://forgejo.skynet.ie/Skynet/actions-deploy-to-skynet@v2
2024-08-08 13:44:32 +00:00
with:
2024-08-08 13:48:34 +00:00
input: 'skynet_website_renew'
token: ${{ secrets.API_TOKEN_FORGEJO }}