This commit is contained in:
2026-01-25 00:03:35 +08:00
parent a848f82789
commit 715a56a939
2 changed files with 18 additions and 12 deletions

View File

@@ -90,11 +90,11 @@ jobs:
- name: Install Bun - name: Install Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
- name: Download build artifact # - name: Download build artifact
uses: actions/download-artifact@v4 # uses: actions/download-artifact@v4
with: # with:
name: build-output-${{ steps.commit-hash.outputs.short }} # name: build-output-${{ steps.commit-hash.outputs.short }}
path: dist # path: dist
- name: Install ESA CLI - name: Install ESA CLI
run: | run: |
@@ -103,7 +103,7 @@ jobs:
- name: Deploy to ESA - name: Deploy to ESA
run: | run: |
esa-cli login --access-key-id ${{ secrets.ESA_ACCESS_KEY_ID }} --access-key-secret ${{ secrets.ESA_ACCESS_KEY_SECRET }} esa-cli login --access-key-id ${{ secrets.ESA_ACCESS_KEY_ID }} --access-key-secret ${{ secrets.ESA_ACCESS_KEY_SECRET }}
esa-cli deploy --assets ./dist --name ${{ env.ESA_PROJECT_NAME }} --minify esa-cli deploy --name ${{ env.ESA_PROJECT_NAME }} --minify
deploy-vercel: deploy-vercel:
needs: build needs: build
@@ -168,11 +168,11 @@ jobs:
- name: Install Bun - name: Install Bun
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
- name: Download build artifact # - name: Download build artifact
uses: actions/download-artifact@v4 # uses: actions/download-artifact@v4
with: # with:
name: build-output-${{ steps.commit-hash.outputs.short }} # name: build-output-${{ steps.commit-hash.outputs.short }}
path: dist # path: dist
- name: Install EdgeOne CLI - name: Install EdgeOne CLI
run: | run: |
@@ -183,7 +183,7 @@ jobs:
if [ -z "${{ secrets.EDGEONE_TOKEN }}" ] || [ -z "${{ env.EDGEONE_PROJECT_NAME }}" ]; then if [ -z "${{ secrets.EDGEONE_TOKEN }}" ] || [ -z "${{ env.EDGEONE_PROJECT_NAME }}" ]; then
echo "Skipping EdgeOne deploy: missing EDGEONE_TOKEN or EDGEONE_PROJECT_NAME" && exit 0 echo "Skipping EdgeOne deploy: missing EDGEONE_TOKEN or EDGEONE_PROJECT_NAME" && exit 0
fi fi
edgeone pages deploy ./dist --token ${{ secrets.EDGEONE_TOKEN }} --name "${{ env.EDGEONE_PROJECT_NAME }}" edgeone pages deploy --token ${{ secrets.EDGEONE_TOKEN }} --name "${{ env.EDGEONE_PROJECT_NAME }}"
deploy-cloudflare: deploy-cloudflare:
needs: build needs: build

6
.gitignore vendored
View File

@@ -16,3 +16,9 @@ yarn.lock
.edgeone/ .edgeone/
.vercel .vercel
.env*.local .env*.local
# Tencent Cloud EdgeOne
.env
.edgeone/*
!.edgeone/project.json
.tef_dist/*