|
|
|
|
@ -13,9 +13,9 @@ jobs:
@@ -13,9 +13,9 @@ jobs:
|
|
|
|
|
steps: |
|
|
|
|
- name: Branch check |
|
|
|
|
run: | |
|
|
|
|
if [[ "$GITHUB_REF" != "refs/heads/rc" ]]; then |
|
|
|
|
if [[ "$GITHUB_REF" != "refs/heads/release" ]]; then |
|
|
|
|
echo "===================================" |
|
|
|
|
echo "[!] Can only release from rc branch" |
|
|
|
|
echo "[!] Can only release from the 'release' branch" |
|
|
|
|
echo "===================================" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
@ -23,7 +23,7 @@ jobs:
@@ -23,7 +23,7 @@ jobs:
|
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4 |
|
|
|
|
with: |
|
|
|
|
ref: rc |
|
|
|
|
ref: release |
|
|
|
|
|
|
|
|
|
- name: Retrieve CLI release version |
|
|
|
|
id: retrieve-version |
|
|
|
|
@ -51,7 +51,7 @@ jobs:
@@ -51,7 +51,7 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
workflow: build.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: rc |
|
|
|
|
branch: release |
|
|
|
|
|
|
|
|
|
- name: Create release |
|
|
|
|
uses: ncipollo/release-action@95215a3cb6e6a1908b3c44e00b4fdb15548b1e09 # v2.8.5 |
|
|
|
|
@ -85,7 +85,7 @@ jobs:
@@ -85,7 +85,7 @@ jobs:
|
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 |
|
|
|
|
with: |
|
|
|
|
ref: 'rc' |
|
|
|
|
ref: release |
|
|
|
|
|
|
|
|
|
- name: Install Snapcraft |
|
|
|
|
uses: samuelmeuli/action-snapcraft@10d7d0a84d9d86098b19f872257df314b0bd8e2d # v1.2.0 |
|
|
|
|
@ -97,7 +97,7 @@ jobs:
@@ -97,7 +97,7 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
workflow: build.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: rc |
|
|
|
|
branch: release |
|
|
|
|
artifacts: bw_${{ env._PKG_VERSION }}_amd64.snap |
|
|
|
|
|
|
|
|
|
- name: Test |
|
|
|
|
@ -119,7 +119,7 @@ jobs:
@@ -119,7 +119,7 @@ jobs:
|
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 |
|
|
|
|
with: |
|
|
|
|
ref: 'rc' |
|
|
|
|
ref: release |
|
|
|
|
|
|
|
|
|
- name: Setup Chocolatey |
|
|
|
|
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ |
|
|
|
|
@ -131,7 +131,7 @@ jobs:
@@ -131,7 +131,7 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
workflow: build.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: rc |
|
|
|
|
branch: release |
|
|
|
|
artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg |
|
|
|
|
|
|
|
|
|
- name: Push to Chocolatey |
|
|
|
|
@ -147,14 +147,14 @@ jobs:
@@ -147,14 +147,14 @@ jobs:
|
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 |
|
|
|
|
with: |
|
|
|
|
ref: 'rc' |
|
|
|
|
ref: release |
|
|
|
|
|
|
|
|
|
- name: Download artifacts |
|
|
|
|
uses: bitwarden/gh-actions/download-artifacts@23433be15ed6fd046ce12b6889c5184a8d9c8783 |
|
|
|
|
with: |
|
|
|
|
workflow: build.yml |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: rc |
|
|
|
|
branch: release |
|
|
|
|
artifacts: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip |
|
|
|
|
|
|
|
|
|
- name: Setup NPM |
|
|
|
|
|