diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f6d6f9d02..7e0606ad54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -204,36 +204,49 @@ jobs: include: - project_name: Admin base_path: ./src + upload_artifact: true - project_name: Api base_path: ./src + upload_artifact: true - project_name: Attachments base_path: ./util - project_name: Billing base_path: ./src + upload_artifact: true - project_name: Events base_path: ./src + upload_artifact: true - project_name: EventsProcessor base_path: ./src + upload_artifact: true - project_name: Icons base_path: ./src + upload_artifact: true - project_name: Identity base_path: ./src + upload_artifact: true - project_name: MsSql base_path: ./util - project_name: MsSqlMigratorUtility base_path: ./util + upload_artifact: true - project_name: Nginx base_path: ./util - project_name: Notifications base_path: ./src + upload_artifact: true - project_name: Scim base_path: ./bitwarden_license/src + upload_artifact: true - project_name: Server base_path: ./util + upload_artifact: true - project_name: Setup base_path: ./util + upload_artifact: true - project_name: Sso base_path: ./bitwarden_license/src + upload_artifact: true steps: - name: Checkout repo uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -307,6 +320,7 @@ jobs: tags: ${{ steps.image-name.outputs.name }} - name: Zip project + if: ${{ matrix.upload_artifact }} working-directory: ${{ matrix.base_path }}/${{ matrix.project_name }} run: | mkdir build @@ -323,6 +337,7 @@ jobs: ls -atlh ../ - name: Upload project artifact + if: ${{ matrix.upload_artifact }} uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: ${{ matrix.project_name }}.zip