mirror of
https://github.com/bitwarden/clients.git
synced 2026-11-16 07:03:29 +00:00
[BRE-2408] ci: Prefix commercial CLI artifacts with bw-bit- (#24652)
Commercial CLI zips were unprefixed (bw-linux-*, bw-macos-*, bw-windows-*)
while OSS zips use bw-oss-*. Set the commercial artifact_prefix to -bit so
both license types follow bw-{license}-{os}[-arm64]-{version}.zip, and point
the snap job and snapcraft.yaml at bw-bit-linux-*.
This commit is contained in:
6
.github/workflows/build-cli.yml
vendored
6
.github/workflows/build-cli.yml
vendored
@@ -99,7 +99,7 @@ jobs:
|
||||
license_type:
|
||||
[
|
||||
{ type: "oss", build_prefix: "oss", artifact_prefix: "-oss", readable: "open source license" },
|
||||
{ type: "commercial", build_prefix: "bit", artifact_prefix: "", readable: "commercial license" }
|
||||
{ type: "commercial", build_prefix: "bit", artifact_prefix: "-bit", readable: "commercial license" }
|
||||
]
|
||||
runs-on: ${{ matrix.os.distro }}
|
||||
needs: setup
|
||||
@@ -325,7 +325,7 @@ jobs:
|
||||
license_type:
|
||||
[
|
||||
{ type: "oss", build_prefix: "oss", artifact_prefix: "-oss", readable: "open source license" },
|
||||
{ type: "commercial", build_prefix: "bit", artifact_prefix: "", readable: "commercial license" }
|
||||
{ type: "commercial", build_prefix: "bit", artifact_prefix: "-bit", readable: "commercial license" }
|
||||
]
|
||||
runs-on: windows-2022
|
||||
permissions:
|
||||
@@ -611,7 +611,7 @@ jobs:
|
||||
- name: Get bw linux cli
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
with:
|
||||
name: bw-linux-${{ env._PACKAGE_VERSION }}.zip
|
||||
name: bw-bit-linux-${{ env._PACKAGE_VERSION }}.zip
|
||||
path: apps/cli/dist/snap
|
||||
|
||||
- name: Setup Snap Package
|
||||
|
||||
@@ -40,7 +40,7 @@ apps:
|
||||
parts:
|
||||
bw:
|
||||
plugin: dump
|
||||
source: ./bw-linux-$SNAPCRAFT_PROJECT_VERSION.zip
|
||||
source: ./bw-bit-linux-$SNAPCRAFT_PROJECT_VERSION.zip
|
||||
override-build: |
|
||||
chmod +x bw
|
||||
snapcraftctl build
|
||||
|
||||
Reference in New Issue
Block a user