From 50e05ead85220bdb42d29d1fcc68e88e9a14c165 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sat, 8 Nov 2025 09:40:08 +1100 Subject: [PATCH] Initial commit --- .forgejo/workflows/publish.yaml | 20 ++++++++++++++++++++ .gitignore | 2 ++ site/data.json | 1 + 3 files changed, 23 insertions(+) create mode 100644 .forgejo/workflows/publish.yaml create mode 100644 .gitignore create mode 100644 site/data.json diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..b4c9052 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,20 @@ +on: + push: + +jobs: + publish: + runs-on: docker + env: + NETLIFY_SITE_ID: cf248f4b-6e60-4956-b134-73122ae44299 + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 21.1 + - run: | + npm install + npx eleventy + - run: | + npm install netlify-cli -g + netlify deploy --dir build/site --prod \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6582234 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Local Netlify folder +.netlify diff --git a/site/data.json b/site/data.json new file mode 100644 index 0000000..1b36e0b --- /dev/null +++ b/site/data.json @@ -0,0 +1 @@ +{"data":"this is some data"} \ No newline at end of file