From 0dca6cba8ce41612f95ccaea1498dd57b7d6133e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 24 Mar 2020 11:24:16 -0400 Subject: [PATCH] Compile artifacts --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef8ce6dc5b..c68ebeb2cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,9 +76,22 @@ jobs: npm run build } + - name: Compile artifacts + shell: bash + run: | + mkdir -p artifacts + if [ "$RUNNER_OS" == "Linux" ];then + cp ./dist/*.{snap,AppImage,deb,rpm,freebsd} ./artifacts + elif [ "$RUNNER_OS" == "Windows ]; then + cp ./dist/Bitwarden-*-x64.appx ./artifacts/Bitwarden-$PACKAGE_VERSION-x64-store.appx + cp ./dist/Bitwarden-*-ia32.appx ./artifacts/Bitwarden-$PACKAGE_VERSION-ia32-store.appx + cp ./dist/Bitwarden-Portable-*.exe ./artifacts + cp ./dist/nsis-web/Bitwarden-Installer-*.exe ./artifacts + fi + - name: Upload artifacts if: runner.os == 'Linux' || runner.os == 'Windows' uses: actions/upload-artifact@v2-preview with: - name: dist - path: dist/* + name: artifacts + path: artifacts/*