mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-31 03:30:50 +00:00
Optimize CI/CD: Split build and publish, and improve E2E stability
- Rewrote binaries.yml to use a two-job structure (build and publish) to avoid race conditions during release uploads. - Added a 15-second initialization sleep to ci/test-e2e.sh to ensure OnionShare URLs are fully generated before verification.
This commit is contained in:
1 parent
da33c5cfd1
commit
cbcc7b1d15
2 files changed
+18
-11
No files matched your search
@@ -10,8 +10,6 @@ jobs:
|
||||
build:
|
||||
name: Build for ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
permissions:
|
||||
contents: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -19,13 +17,10 @@ jobs:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
artifact_name: voxvera-linux
|
||||
asset_name: voxvera-linux
|
||||
- os: windows-latest
|
||||
artifact_name: voxvera-windows.exe
|
||||
asset_name: voxvera-windows.exe
|
||||
- os: macos-latest
|
||||
artifact_name: voxvera-macos
|
||||
asset_name: voxvera-macos
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -105,16 +100,26 @@ jobs:
|
||||
voxvera/resources/bin/*.AppImage
|
||||
voxvera/resources/bin/*.flatpak
|
||||
|
||||
publish:
|
||||
name: Create GitHub Release
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
pattern: binaries-*
|
||||
merge-multiple: true
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: |
|
||||
dist/${{ matrix.artifact_name }}
|
||||
voxvera/resources/bin/*.deb
|
||||
voxvera/resources/bin/*.dmg
|
||||
voxvera/resources/bin/*.AppImage
|
||||
voxvera/resources/bin/*.flatpak
|
||||
artifacts/**/*
|
||||
fail_on_unmatched_files: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user