Compare commits
2 commits
e882a8c0e8
...
cac01f1dab
Author | SHA1 | Date | |
---|---|---|---|
|
cac01f1dab | ||
|
dd1fca7691 |
2 changed files with 17 additions and 4 deletions
|
@ -1,5 +1,10 @@
|
|||
|
||||
on: ['push']
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
depoly:
|
||||
|
@ -26,11 +31,19 @@ jobs:
|
|||
- name: Build Dist
|
||||
run: pnpm dist
|
||||
|
||||
- name: Depoly to Cloudflare
|
||||
- name: Depoly to Preview
|
||||
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
|
||||
if: "env.GITHUB_REF_NAME == 'master'"
|
||||
if: github.event.ref_type == 'branch'
|
||||
|
||||
- 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",
|
||||
"name": "tutu",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
|
Loading…
Reference in a new issue