build: replace gha with deploy script
This commit is contained in:
parent
8fa5df3425
commit
ee84c45729
5 changed files with 26 additions and 16 deletions
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
|
@ -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
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
5
.yarnrc.yml
Normal file
5
.yarnrc.yml
Normal 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
7
package.json
Normal 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
12
yarn.lock
Normal 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
|
Loading…
Reference in a new issue