finishing the mac portion of splitting out the deploylments

This commit is contained in:
Joseph Flinn 2021-02-01 13:43:57 -08:00
parent e545ecd165
commit 2dbeba0c97
4 changed files with 35 additions and 21 deletions

View File

@ -66,8 +66,8 @@ jobs:
- name: Install Snap
uses: samuelmeuli/action-snapcraft@v1
# with:
# snapcraft_token: ${{ secrets.SNAP_TOKEN }}
with:
snapcraft_token: ${{ secrets.SNAP_TOKEN }}
- name: setup
run: mkdir dist
@ -84,7 +84,6 @@ jobs:
run: ls -alht dist
- name: Deploy to Snap Store
if: false
run: |
snapcraft upload dist/bitwarden_${{ env.PACKAGE_VERSION }}_amd64.snap --release stable
snapcraft logout
@ -109,10 +108,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- name: Setup Chocolatey
# run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
# env:
# CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
- name: Setup Chocolatey
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
env:
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
- name: make dist dir
shell: pwsh
@ -127,20 +126,32 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Chocolatey
if: false
shell: pwsh
run: |
cd dist
choco push
# Placeholder until the build thing works with the directory-connector
macos:
runs-on: macos-latest
if: false
needs: setup
steps:
- name: Set up Node
uses: actions/setup-node@v1
- name: Checkout repo
uses: actions/checkout@v2
- name: make target directory
run: mkdir -p dist/mas
- name: Get mac release asset
uses: Xotl/cool-github-releases@v1
with:
node-version: '10.x'
mode: download
tag_name: ${{ env.TAG_VERSION }}
assets: Bitwarden-${{ env.PACKAGE_VERSION }}.pkg|./dist/mas/Bitwarden-${{ env.PACKAGE_VERSION }}.pkg
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to App Store
run: npm run upload:mas
env:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

View File

@ -181,7 +181,6 @@ jobs:
choco pack ./dist/chocolatey/bitwarden.nuspec --version "$env:PACKAGE_VERSION" --out ./dist/chocolatey
cd ./dist/chocolatey
ls -alht dist/chocolatey
#choco push
- name: Upload Chocolatey nupkg release asset
uses: actions/upload-release-asset@v1
@ -352,8 +351,12 @@ jobs:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
- name: Deploy to App Store
run: npm run upload:mas
- name: Upload Apple Store release asset
uses: actions/upload-release-asset@v1
env:
APPLE_ID_USERNAME: ${{ secrets.APPLE_ID_USERNAME }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: Bitwarden-${{ env.PACKAGE_VERSION }}.pkg
asset_path: ./dist/mas/Bitwarden-${{ env.PACKAGE_VERSION }}.pkg
asset_content_type: application

View File

@ -13,7 +13,7 @@
"homepage": "https://bitwarden.com",
"repository": {
"type": "git",
"url": "https://github.com/joseph-flinn/desktop"
"url": "https://github.com/bitwarden/desktop"
},
"license": "GPL-3.0",
"scripts": {

View File

@ -2,14 +2,14 @@
"name": "bitwarden",
"productName": "Bitwarden",
"description": "A secure and free password manager for all of your devices.",
"version": "1.24.8",
"version": "1.24.6",
"author": "Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)",
"homepage": "https://bitwarden.com",
"license": "GPL-3.0",
"main": "main.js",
"repository": {
"type": "git",
"url": "https://github.com/joseph-flinn/desktop"
"url": "https://github.com/bitwarden/desktop"
},
"dependencies": {
"@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4",