build: replace gha with deploy script

This commit is contained in:
Marc 2024-10-07 00:30:48 -04:00
parent 8fa5df3425
commit ee84c45729
Signed by: marc
GPG key ID: 048E042F22B5DC79
5 changed files with 26 additions and 16 deletions

View file

@ -1,16 +0,0 @@
on:
push:
branches:
master
jobs:
deploy:
name: Deploy site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --project-name=profile-page .

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.pnp.*
.yarn/*

5
.yarnrc.yml Normal file
View file

@ -0,0 +1,5 @@
nodeLinker: pnpm
enableGlobalCache: false
enableMirror: false
globalFolder: .yarn/berry
yarnPath: .yarn/releases/yarn-4.5.0.cjs

7
package.json Normal file
View file

@ -0,0 +1,7 @@
{
"private": true,
"packageManager": "yarn@4.5.0",
"scripts": {
"deploy": "yarn dlx wrangler pages deploy --project-name profile-page ."
}
}

12
yarn.lock Normal file
View file

@ -0,0 +1,12 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 8
cacheKey: 10c0
"root-workspace-0b6124@workspace:.":
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
languageName: unknown
linkType: soft