From e339897ebab9d15cfe4cbf81d7cb977e76f64e72 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sat, 25 Jan 2025 11:56:59 +1100 Subject: [PATCH] Added publish to netlify --- .forgejo/workflows/publish.yaml | 21 +++++++++++++++++++++ .gitignore | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/publish.yaml diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..7604191 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,21 @@ + +on: + push: + +jobs: + publish: + runs-on: docker + env: + NETLIFY_SITE_ID: dc9e94f6-92d2-48e5-ab37-53b8617d8950 + 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 diff --git a/.gitignore b/.gitignore index 56013cf..cadaa39 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ node_modules/ _site/ build/ -.idea/ \ No newline at end of file +.idea/ +# Local Netlify folder +.netlify