From bf0463650131695e06697ac53a306d29f9be81d6 Mon Sep 17 00:00:00 2001 From: nycki Date: Tue, 24 Dec 2024 19:37:12 +0000 Subject: [PATCH] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index eb925a3..fb580d2 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,4 +1,8 @@ -on: workflow_dispatch +on: + workflow_dispatch: true + push: + branches: [main] + jobs: build: runs-on: self-hosted @@ -7,6 +11,6 @@ jobs: - uses: actions/setup-node@v4 - run: npm ci - run: npm run build - - run: mkdir -p /data/forgejo-runner/nycki.net/site - - run: cp site.conf /data/forgejo-runner/nycki.net/site.conf - - run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/forgejo-runner/nycki.net/site/ + - run: mkdir -p /data/nycki.net/site + - run: cp site.conf /data/nycki.net/site.conf + - run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/