Skip to content

Commit

Permalink
[ci] Combine artifacts in a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 8, 2023
1 parent a6298ab commit 152162d
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ jobs:
shell: bash
run: |
export BUILD_DIR=build-release
export INSTALL_DIR=$PWD/install
export INSTALL_DIR="$PWD/install"
mkdir -p "$INSTALL_DIR"
if [[ "${{ matrix.config.path }}" != "" ]]; then
export PATH=${{ matrix.config.path }}:$PATH
Expand Down Expand Up @@ -181,12 +182,33 @@ jobs:
)
done
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config.triple }}
path: |
$INSTALL_DIR/*
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3

- name: Combine
shell: bash
run: |
find . -name '*.zip'
mkdir -p output
find . -name '*.zip' -exec mv {} output/ \;
- name: Upload
uses: xresloader/upload-to-github-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "build-release/pd/*;build-release/vintage/*;build-release/python/*;build-release/vst3/*;build-release/clap/*;build-release/max/*"
file: "output/*"
delete_file: "*"
branches: "main"
verbose: true
Expand Down

0 comments on commit 152162d

Please sign in to comment.