From deb5f296a72a3403b7fb4919eb0cd1748594fb74 Mon Sep 17 00:00:00 2001 From: Nebula Date: Wed, 25 Dec 2024 20:57:06 -0500 Subject: [PATCH] ci: add deploy workflow --- .github/workflows/deploy.yml | 34 +++++++++ .gitignore | 131 ++++++++++++++++++++++++++++++++++- bun.lockb | Bin 169069 -> 169101 bytes next.config.mjs | 4 +- 4 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..2cf0a7b --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy to Cloudflare Pages + +on: + - push + - workflow_dispatch + +jobs: + deploy: + name: Deploy to Cloudflare Pages + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun i + + - name: Build + run: bun run build + + - name: Publish + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + projectName: nocturne-site + directory: out + gitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index e2a758f..f3f691e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,132 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output .next -node_modules +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + .DS_Store \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 7d6f6d356848379e7ad6a8636085c9201594fcbe..895d5db80755912f4263b74221f2c7416eb21499 100755 GIT binary patch delta 4185 zcmcInd011&7Qb@|kfcNq36KN`2wFG78buKV+FAsaN?mX%fcqCi=+Xt7wq+FI1Q;Zk|Hy))rnJKy)qne&^;xie?hbFWgk ztxA}qu(7ud*zGOLXR!<1V7IgS1ZXp`_klJA{WWM4(3zkOKu5DWQ56%tf}*JB`h$Eh@b5wW ze9%JB5BOSpa)v(;0wCg7s}jRhDykg}5!el&NyE6%xYg0&6tyBrwPJM&M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Ge9=Ik?}3*5HFmh$ofMC1i+W4Iy#vZX|tfGJH=$J8KhdX}gX80pKGB Aod5s; diff --git a/next.config.mjs b/next.config.mjs index 1d61478..271399d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {} +const nextConfig = { + output: 'export', +} export default nextConfig