ci: Update release step with new artifacts

This commit is contained in:
2025-11-11 14:30:44 -07:00
parent bb0687d00d
commit 8c765a3d32

View File

@@ -71,7 +71,7 @@ jobs:
suffix: 64-alpine suffix: 64-alpine
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -143,7 +143,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: ${{ matrix.id }} name: ${{ matrix.id }}
path: dist/wibo path: dist/wibo
@@ -169,7 +169,7 @@ jobs:
brew install mingw-w64 brew install mingw-w64
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -182,7 +182,7 @@ jobs:
run: ctest --preset ${{ matrix.preset }} run: ctest --preset ${{ matrix.preset }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v5
with: with:
name: ${{ matrix.id }} name: ${{ matrix.id }}
path: build/${{ matrix.build_dir }}/wibo path: build/${{ matrix.build_dir }}/wibo
@@ -190,34 +190,29 @@ jobs:
release: release:
name: Publish Release name: Publish Release
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
needs: build needs: [build, build-macos]
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
steps: steps:
- name: Download static debug - name: Download artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v6
with: with:
name: static-debug path: artifacts
path: artifacts/static-debug
- name: Download static release - name: Prepare artifacts
uses: actions/download-artifact@v4
with:
name: static-release
path: artifacts/static-release
- name: Prepare assets
run: | run: |
mkdir -p artifacts/out mkdir artifacts/out
cp artifacts/static-debug/wibo artifacts/out/wibo_debug mv artifacts/static-release/wibo artifacts/out/wibo-i686
cp artifacts/static-release/wibo artifacts/out/wibo mv artifacts/static-debug/wibo artifacts/out/wibo-i686-debug
mv artifacts/static-release64/wibo artifacts/out/wibo-x86_64
mv artifacts/static-debug64/wibo artifacts/out/wibo-x86_64-debug
mv artifacts/macos-release/wibo artifacts/out/wibo-macos
mv artifacts/macos-debug/wibo artifacts/out/wibo-macos-debug
- name: Publish release - name: Publish release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: | files: artifacts/out/*
artifacts/out/wibo
artifacts/out/wibo_debug
draft: true draft: true
generate_release_notes: true generate_release_notes: true