Skip to content

Commit

Permalink
Migrate away from Vercel (#106)
Browse files Browse the repository at this point in the history
* migrate away from Vercel

* stupid lock file
  • Loading branch information
powercasgamer authored Jul 31, 2024
1 parent 9e95fae commit b5ae2e3
Show file tree
Hide file tree
Showing 4 changed files with 3,704 additions and 3,297 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Deploy to Cloudflare Pages (Preview)"

on: [pull_request_target]

jobs:
deploy:
runs-on: "ubuntu-latest"
permissions:
contents: read
deployments: write
pull-requests: write
steps:
- name: "checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: "setup pnpm"
uses: "pnpm/action-setup@v4"
- name: "setup node"
uses: "actions/setup-node@v4"
with:
cache: "pnpm"
node-version: 20
- name: "install dependencies"
run: "pnpm install"
- name: "build"
run: "pnpm run build"
- name: "publish (push)"
id: "cloudflare-publish"
uses: "AdrianGonz97/refined-cf-pages-action@v1"
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "papermc-website"
deploymentName: "Preview"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
directory: "build"
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ yarn-error.log*
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"windicss": "3.5.6",
"windicss-webpack-plugin": "1.8.0"
},
"sideEffects": false
"sideEffects": false,
"packageManager": "[email protected]+sha512.98a80fd11c2e7096747762304106432b3ddc67dcf54b5a8c01c93f68a2cd5e05e6821849522a06fb76284d41a2660d5e334f2ee3bbf29183bf2e739b1dafa771"
}
Loading

0 comments on commit b5ae2e3

Please sign in to comment.