Update .forgejo/workflows/build.yaml

This commit is contained in:
Nycki 2024-12-24 19:37:12 +00:00
parent c9da683a3c
commit bf04636501

View file

@ -1,4 +1,8 @@
on: workflow_dispatch on:
workflow_dispatch: true
push:
branches: [main]
jobs: jobs:
build: build:
runs-on: self-hosted runs-on: self-hosted
@ -7,6 +11,6 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- run: mkdir -p /data/forgejo-runner/nycki.net/site - run: mkdir -p /data/nycki.net/site
- run: cp site.conf /data/forgejo-runner/nycki.net/site.conf - run: cp site.conf /data/nycki.net/site.conf
- run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/forgejo-runner/nycki.net/site/ - run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/