mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-09-27 19:51:59 +02:00
build: don't fail if dist is already created
This commit is contained in:
@@ -180,12 +180,25 @@ jobs:
|
|||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Verify frontend dist exists
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ ! -d "dist" ]; then
|
||||||
|
echo "Error: dist directory not found after build"
|
||||||
|
ls -la
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Frontend dist directory verified at $(pwd)/dist"
|
||||||
|
echo "Checking from src-tauri perspective:"
|
||||||
|
ls -la src-tauri/../dist || echo "Warning: dist not accessible from src-tauri"
|
||||||
|
|
||||||
- name: Build Tauri app
|
- name: Build Tauri app
|
||||||
uses: tauri-apps/tauri-action@19b93bb55601e3e373a93cfb6eb4242e45f5af20 #v0.6.0
|
uses: tauri-apps/tauri-action@19b93bb55601e3e373a93cfb6eb4242e45f5af20 #v0.6.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_REF_NAME: ${{ github.ref_name }}
|
GITHUB_REF_NAME: ${{ github.ref_name }}
|
||||||
with:
|
with:
|
||||||
|
projectPath: ./src-tauri
|
||||||
tagName: ${{ github.ref_name }}
|
tagName: ${{ github.ref_name }}
|
||||||
releaseName: "Donut Browser ${{ github.ref_name }}"
|
releaseName: "Donut Browser ${{ github.ref_name }}"
|
||||||
releaseBody: "See the assets to download this version and install."
|
releaseBody: "See the assets to download this version and install."
|
||||||
|
|||||||
@@ -179,6 +179,18 @@ jobs:
|
|||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
|
- name: Verify frontend dist exists
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [ ! -d "dist" ]; then
|
||||||
|
echo "Error: dist directory not found after build"
|
||||||
|
ls -la
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Frontend dist directory verified at $(pwd)/dist"
|
||||||
|
echo "Checking from src-tauri perspective:"
|
||||||
|
ls -la src-tauri/../dist || echo "Warning: dist not accessible from src-tauri"
|
||||||
|
|
||||||
- name: Generate nightly timestamp
|
- name: Generate nightly timestamp
|
||||||
id: timestamp
|
id: timestamp
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -196,6 +208,7 @@ jobs:
|
|||||||
GITHUB_REF_NAME: "nightly-${{ steps.timestamp.outputs.timestamp }}"
|
GITHUB_REF_NAME: "nightly-${{ steps.timestamp.outputs.timestamp }}"
|
||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
with:
|
with:
|
||||||
|
projectPath: ./src-tauri
|
||||||
tagName: "nightly-${{ steps.timestamp.outputs.timestamp }}"
|
tagName: "nightly-${{ steps.timestamp.outputs.timestamp }}"
|
||||||
releaseName: "Donut Browser Nightly (Build ${{ steps.timestamp.outputs.timestamp }})"
|
releaseName: "Donut Browser Nightly (Build ${{ steps.timestamp.outputs.timestamp }})"
|
||||||
releaseBody: "⚠️ **Nightly Release** - This is an automatically generated pre-release build from the latest main branch. Use with caution.\n\nCommit: ${{ github.sha }}\nBuild: ${{ steps.timestamp.outputs.timestamp }}"
|
releaseBody: "⚠️ **Nightly Release** - This is an automatically generated pre-release build from the latest main branch. Use with caution.\n\nCommit: ${{ github.sha }}\nBuild: ${{ steps.timestamp.outputs.timestamp }}"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm copy-proxy-binary && pnpm dev",
|
"beforeDevCommand": "pnpm copy-proxy-binary && pnpm dev",
|
||||||
"devUrl": "http://localhost:3000",
|
"devUrl": "http://localhost:3000",
|
||||||
"beforeBuildCommand": "pnpm copy-proxy-binary && pnpm build",
|
"beforeBuildCommand": "pnpm copy-proxy-binary && (test -d ../dist || pnpm build)",
|
||||||
"frontendDist": "../dist"
|
"frontendDist": "../dist"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
|
|||||||
Reference in New Issue
Block a user