1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

try github action ci build

This commit is contained in:
Kyle Spearrin
2020-09-22 16:00:58 -04:00
parent 961dc87f05
commit 17d8aef5db
12 changed files with 122 additions and 0 deletions

View File

@@ -99,3 +99,59 @@ jobs:
with:
name: desktop-artifacts
path: artifacts/*
macos:
runs-on: macos-latest
steps:
- name: Print environment
run: |
Write-Output "GitHub ref: $env:GITHUB_REF"
Write-Output "GitHub event: $env:GITHUB_EVENT"
shell: pwsh
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_EVENT: ${{ github.event_name }}
- name: Checkout repo
uses: actions/checkout@v2
- name: Decrypt secrets
run: ./.github/scripts/macos/decrypt-secrets.ps1
shell: pwsh
env:
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
- name: Increment version
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
run: ./.github/scripts/macos/increment-version.ps1
shell: pwsh
- name: Set up keychain
run: ./.github/scripts/macos/setup-keychain.ps1
shell: pwsh
env:
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
DESKTOP_KEY_PASSWORD: ${{ secrets.DESKTOP_KEY_PASSWORD }}
DEVID_CERT_PASSWORD: ${{ secrets.DEVID_CERT_PASSWORD }}
APPSTORE_CERT_PASSWORD: ${{ secrets.APPSTORE_CERT_PASSWORD }}
- name: Set up provisioning profiles
run: ./.github/scripts/macos/setup-profiles.ps1
shell: pwsh
- name: Build Safari extension for .dmg
shell: pwsh
run: ./scripts/safari-build.ps1
- name: Build application for .dmg
shell: pwsh
run: npm run dist:mac
- name: Build Safari extension for App Store
shell: pwsh
run: ./scripts/safari-build.ps1 -mas
- name: Build application for App Store
shell: pwsh
run: npm run dist:mac:mas