1
0
Fork 0
forked from Skynet/wiki
wiki/.forgejo/workflows/build.yaml

31 lines
637 B
YAML
Raw Normal View History

2024-08-08 13:13:28 +00:00
name: Build
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:
2024-08-08 13:56:35 +00:00
# Build it locally, this helps caching for later
2024-08-08 13:13:28 +00:00
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
2024-08-08 13:56:35 +00:00
# deploy it upstream
2024-08-08 13:44:32 +00:00
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 }}