Merge pull request #889 from bitwarden/fix-desktop-deploy

Fix desktop deploy
This commit is contained in:
Joseph Flinn 2021-05-12 11:02:48 -07:00 committed by GitHub
commit 80ea232eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 8 deletions

View File

@ -59,7 +59,7 @@ jobs:
needs: setup needs: setup
env: env:
PKG_VERSION: ${{ needs.setup.outputs.package_version }} PKG_VERSION: ${{ needs.setup.outputs.package_version }}
TAG_VERSION: ${{ needs.setup.ouputs.tag_version }} TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -85,7 +85,7 @@ jobs:
- name: Deploy to Snap Store - name: Deploy to Snap Store
run: | run: |
snapcraft upload dist/bitwarden_${{ env.PACKAGE_VERSION }}_amd64.snap --release stable snapcraft upload dist/bitwarden_${{ env.PKG_VERSION }}_amd64.snap --release stable
snapcraft logout snapcraft logout
@ -101,12 +101,12 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Get choco release asset - name: Get choco release asset
uses: dsaltares/fetch-gh-release-asset@0.0.5 uses: Xotl/cool-github-releases@v1
with: with:
version: tags/${{ env.TAG_VERSION }} mode: download
file: bitwarden.${{ env.PKG_VERSION }}.nupkg tag_name: ${{ env.TAG_VERSION }}
env: assets: bitwarden.${{ env.PKG_VERSION }}.nupkg
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Chocolatey - name: Setup Chocolatey
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
@ -135,6 +135,9 @@ jobs:
macos: macos:
runs-on: macos-latest runs-on: macos-latest
needs: setup needs: setup
env:
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -147,7 +150,7 @@ jobs:
with: with:
mode: download mode: download
tag_name: ${{ env.TAG_VERSION }} tag_name: ${{ env.TAG_VERSION }}
assets: Bitwarden-${{ env.PACKAGE_VERSION }}-universal.pkg|./dist/mas-universal/Bitwarden-${{ env.PACKAGE_VERSION }}-universal.pkg assets: Bitwarden-${{ env.PKG_VERSION }}-universal.pkg|./dist/mas-universal/Bitwarden-${{ env.PKG_VERSION }}-universal.pkg
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to App Store - name: Deploy to App Store