diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4b21a1e5da7..7bc1a8c8f3c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,7 +59,7 @@ jobs: needs: setup env: PKG_VERSION: ${{ needs.setup.outputs.package_version }} - TAG_VERSION: ${{ needs.setup.ouputs.tag_version }} + TAG_VERSION: ${{ needs.setup.outputs.tag_version }} steps: - name: Checkout Repo uses: actions/checkout@v2 @@ -85,7 +85,7 @@ jobs: - name: Deploy to Snap Store 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 @@ -101,12 +101,12 @@ jobs: uses: actions/checkout@v2 - name: Get choco release asset - uses: dsaltares/fetch-gh-release-asset@0.0.5 + uses: Xotl/cool-github-releases@v1 with: - version: tags/${{ env.TAG_VERSION }} - file: bitwarden.${{ env.PKG_VERSION }}.nupkg - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + mode: download + tag_name: ${{ env.TAG_VERSION }} + assets: bitwarden.${{ env.PKG_VERSION }}.nupkg + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Chocolatey run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ @@ -135,6 +135,9 @@ jobs: macos: runs-on: macos-latest needs: setup + env: + PKG_VERSION: ${{ needs.setup.outputs.package_version }} + TAG_VERSION: ${{ needs.setup.outputs.tag_version }} steps: - name: Checkout repo uses: actions/checkout@v2 @@ -147,7 +150,7 @@ jobs: with: mode: download 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 }} - name: Deploy to App Store