Skip to content

Commit

Permalink
Cloudflare (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte authored Jan 31, 2024
1 parent 567455a commit eb51a7d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: CI

on:
pull_request:
Expand All @@ -9,8 +9,11 @@ on:
- main

jobs:
test:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -26,3 +29,13 @@ jobs:
run: bun run test:lint
- name: Test (format)
run: bun run test:format
- name: Build
run: bun run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: displacementx
directory: out
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: 'export',
};

module.exports = nextConfig;

0 comments on commit eb51a7d

Please sign in to comment.