Compare commits
No commits in common. "cac01f1dab087b8946b969d5783a5f4700b4ea2b" and "e882a8c0e80168ad301aa4d515b17c2b33ef84d9" have entirely different histories.
cac01f1dab
...
e882a8c0e8
2 changed files with 4 additions and 17 deletions
|
@ -1,10 +1,5 @@
|
||||||
|
|
||||||
on:
|
on: ['push']
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
depoly:
|
depoly:
|
||||||
|
@ -31,19 +26,11 @@ jobs:
|
||||||
- name: Build Dist
|
- name: Build Dist
|
||||||
run: pnpm dist
|
run: pnpm dist
|
||||||
|
|
||||||
- name: Depoly to Preview
|
- name: Depoly to Cloudflare
|
||||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
command: pages deploy --project-name=tututheapp dist
|
command: pages deploy --project-name=tututheapp dist
|
||||||
if: github.event.ref_type == 'branch'
|
if: "env.GITHUB_REF_NAME == 'master'"
|
||||||
|
|
||||||
- name: Depoly to Production
|
|
||||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
|
||||||
with:
|
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
command: pages deploy --project-name=tututheapp dist --branch=production
|
|
||||||
if: github.event.ref_type == 'tag'
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package",
|
"$schema": "https://json.schemastore.org/package",
|
||||||
"name": "tutu",
|
"name": "tutu",
|
||||||
"version": "1.0.0",
|
"version": "0.1.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
Loading…
Reference in a new issue