Skip to content

Commit

Permalink
fix: attempt to deploy manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamalam360 committed Jun 9, 2024
1 parent 6f26aca commit 61d37a6
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 57 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to Cloudflare Pages

on:
push:
branches: rewrite

jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Build site
run: |
pnpm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 2604d9d303c7a3e9c9b923c3f05e0bb9
projectName: mod-magazine
directory: build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"discord-api-types": "^0.37.87",
"fuse.js": "^7.0.0",
"lucide-svelte": "^0.390.0",
"node-fetch": "^3.3.2",
"postcss-load-config": "^5.0.0",
"svelte-markdown": "^0.4.1",
"svelte-virtual-scroll-list": "^1.3.0",
Expand Down
48 changes: 0 additions & 48 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/lib/fetchPolyfill.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import "$lib/fetchPolyfill";

export const prerender = true;

0 comments on commit 61d37a6

Please sign in to comment.