mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: Correctly set BASE_URL for unstable build artifacts in GitHub Actions workflow
This commit is contained in:
2
.github/R2_SETUP.md
vendored
2
.github/R2_SETUP.md
vendored
@@ -28,7 +28,7 @@ Configure these secrets in your GitHub repository settings (`Settings` → `Secr
|
||||
|
||||
| Secret Name | Description | Example |
|
||||
|-------------|-------------|---------|
|
||||
| `R2_PUBLIC_URL` | Public URL for R2 bucket (if public access configured) | `https://builds.example.com` |
|
||||
| `R2_PUBLIC_URL` | Public URL for R2 bucket (if public access configured) | `https://meshcore-sar.dz0ny.dev` |
|
||||
|
||||
## Step-by-Step Setup
|
||||
|
||||
|
||||
6
.github/workflows/build-multiplatform.yml
vendored
6
.github/workflows/build-multiplatform.yml
vendored
@@ -843,12 +843,14 @@ jobs:
|
||||
run: |
|
||||
# If R2_PUBLIC_URL is set, generate public download links
|
||||
if [ -n "${{ secrets.R2_PUBLIC_URL }}" ]; then
|
||||
BASE_URL="${{ secrets.R2_PUBLIC_URL }}/unstable/${{ steps.metadata.outputs.build_prefix }}"
|
||||
|
||||
echo "## 📦 Unstable Build Artifacts" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Build ID: \`${{ steps.metadata.outputs.build_prefix }}-${{ steps.metadata.outputs.timestamp }}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
BASE_URL="${{ secrets.R2_PUBLIC_URL }}/unstable/${{ steps.metadata.outputs.build_prefix }}"
|
||||
echo "🌐 **[View Download Page]($BASE_URL/)**" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
if [ -f "r2-upload/unstable/${{ steps.metadata.outputs.build_prefix }}"/*.apk ]; then
|
||||
APK_FILE=$(basename r2-upload/unstable/${{ steps.metadata.outputs.build_prefix }}/*.apk)
|
||||
|
||||
Reference in New Issue
Block a user