mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
checkout safari via github action
This commit is contained in:
8
.github/scripts/macos/clean-safari.ps1
vendored
Normal file
8
.github/scripts/macos/clean-safari.ps1
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
$rootPath = $env:GITHUB_WORKSPACE;
|
||||
$distDir = $rootPath + "\dist";
|
||||
$distSafariDir = $distDir + "\safari";
|
||||
|
||||
if (Test-Path -Path $distSafariDir) {
|
||||
Remove-Item -Recurse -Force $distSafariDir
|
||||
}
|
||||
New-Item $distSafariDir -ItemType Directory -ea 0
|
||||
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -150,9 +150,19 @@ jobs:
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Clean safari directory
|
||||
shell: pwsh
|
||||
run: ./scripts/clean-safari.ps1
|
||||
|
||||
- name: Checkout browser extension
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'bitwarden/browser'
|
||||
path: 'dist/safari'
|
||||
|
||||
- name: Build Safari extension for .dmg
|
||||
shell: pwsh
|
||||
run: ./scripts/safari-build.ps1
|
||||
run: ./scripts/safari-build.ps1 -skipcheckout
|
||||
|
||||
- name: Build application for .dmg
|
||||
run: npm run dist:mac
|
||||
@@ -162,7 +172,7 @@ jobs:
|
||||
|
||||
- name: Build Safari extension for App Store
|
||||
shell: pwsh
|
||||
run: ./scripts/safari-build.ps1 -mas
|
||||
run: ./scripts/safari-build.ps1 -mas -skipcheckout
|
||||
|
||||
- name: Build application for App Store
|
||||
run: npm run dist:mac:mas
|
||||
|
||||
Reference in New Issue
Block a user