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/