1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-28 12:35:40 +01:00

reverting all of the testing code

This commit is contained in:
Joseph Flinn 2021-01-22 04:53:28 +00:00
parent 56bf4d66ba
commit a1559faefb
4 changed files with 14 additions and 81 deletions

View File

@ -187,13 +187,13 @@ jobs:
- name: Deploy to Chocolatey - name: Deploy to Chocolatey
shell: pwsh shell: pwsh
run: | run: |
Copy-Item -Path ./stores/chocolatey -Destination ./chocolatey -Recurse Copy-Item -Path ./stores/chocolatey -Destination ./dist/chocolatey -Recurse
Copy-Item -Path ./dist/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe -Destination ./chocolatey Copy-Item -Path ./dist/nsis-web/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe -Destination ./dist/chocolatey
$checksum = checksum -t sha256 ./chocoloatey/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe $checksum = checksum -t sha256 ./dist/chocoloatey/Bitwarden-Installer-${{ env.PACKAGE_VERSION }}.exe
$chocoInstall = "./chocolatey/tools/chocolateyinstall.ps1" $chocoInstall = "./dist/chocolatey/tools/chocolateyinstall.ps1"
(Get-Content $chocoInstall).replace('__version__', ${{ env.PACKAGE_VERSION }}).replace('__checksum__', $checksum) | Set-Content $chocoInstall (Get-Content $chocoInstall).replace('__version__', "$env:PACKAGE_VERSION").replace('__checksum__', $checksum) | Set-Content $chocoInstall
choco pack ./chocolatey/bitwarden.nuspec --version ${{ env.PACKAGE_VERSION }} --out ./chocolately choco pack ./dist/chocolatey/bitwarden.nuspec --version "$env:PACKAGE_VERSION" --out ./dist/chocolatey
- name: Upload portable exe artifact - name: Upload portable exe artifact
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'

View File

@ -100,75 +100,15 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Build application - name: Deploy to Snap Store
if: false run: |
run: npm run dist:lin ./scripts/snap-update.ps1 -version $env:PACKAGE_VERSION
snapcraft logout
- name: Upload .deb release asset shell: pwsh
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: Bitwarden-${{ env.PACKAGE_VERSION }}-amd64.deb
asset_path: ./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-amd64.deb
asset_content_type: application/x-debian-package
- name: Upload .rpm release asset
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: Bitwarden-${{ env.PACKAGE_VERSION }}-x86_64.rpm
asset_path: ./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-x86_64.rpm
asset_content_type: application
- name: Upload .freebsd release asset
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: Bitwarden-${{ env.PACKAGE_VERSION }}-x64.freebsd
asset_path: ./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-x64.freebsd
asset_content_type: application
- name: Upload .snap checksum release asset
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: bitwarden_${{ env.PACKAGE_VERSION }}_amd64.snap
asset_path: ./dist/bitwarden_${{ env.PACKAGE_VERSION }}_amd64.snap
asset_content_type: application
- name: Upload .AppImage checksum release asset
if: false
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.setup.outputs.release_upload_url }}
asset_name: Bitwarden-${{ env.PACKAGE_VERSION }}-x86_64.AppImage
asset_path: ./dist/Bitwarden-${{ env.PACKAGE_VERSION }}-x86_64.AppImage
asset_content_type: application
#- name: Deploy to Snap Store
# run: |
# ./scripts/snap-update.ps1 -version $env:PACKAGE_VERSION
# snapcraft logout
# shell: pwsh
windows: windows:
runs-on: windows-latest runs-on: windows-latest
environment: prod
needs: setup needs: setup
steps: steps:
- name: Set up dotnet - name: Set up dotnet
@ -206,7 +146,6 @@ jobs:
dotnet tool install --global --ignore-failed-sources --add-source ./nupkg --version $latest_version azuresigntool dotnet tool install --global --ignore-failed-sources --add-source ./nupkg --version $latest_version azuresigntool
- name: Set up environment - name: Set up environment
if: false
shell: pwsh shell: pwsh
run: | run: |
choco install checksum --no-progress choco install checksum --no-progress
@ -214,11 +153,6 @@ jobs:
env: env:
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
- name: Set up environment
shell: pwsh
run: |
choco install checksum --no-progress
- name: Print environment - name: Print environment
run: | run: |
node --version node --version
@ -268,7 +202,7 @@ jobs:
(Get-Content $chocoInstall).replace('__version__', "$env:PACKAGE_VERSION").replace('__checksum__', $checksum) | Set-Content $chocoInstall (Get-Content $chocoInstall).replace('__version__', "$env:PACKAGE_VERSION").replace('__checksum__', $checksum) | Set-Content $chocoInstall
choco pack ./dist/chocolatey/bitwarden.nuspec --version "$env:PACKAGE_VERSION" --out ./dist/chocolatey choco pack ./dist/chocolatey/bitwarden.nuspec --version "$env:PACKAGE_VERSION" --out ./dist/chocolatey
cd ./dist/chocolatey cd ./dist/chocolatey
#choco push choco push
- name: Upload Chocolatey nupkg release asset - name: Upload Chocolatey nupkg release asset
id: upload-macos-checksum id: upload-macos-checksum
@ -283,7 +217,6 @@ jobs:
macos: macos:
if: false
runs-on: macos-latest runs-on: macos-latest
needs: setup needs: setup
steps: steps:

View File

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

View File

@ -30,5 +30,5 @@ $chocoInstall = $distChocoDir + "\tools\chocolateyinstall.ps1";
(Get-Content $chocoInstall).replace('__version__', $version).replace('__checksum__', $checksum) | Set-Content $chocoInstall (Get-Content $chocoInstall).replace('__version__', $version).replace('__checksum__', $checksum) | Set-Content $chocoInstall
choco pack $nuspec --version $version --out $distChocoDir choco pack $nuspec --version $version --out $distChocoDir
cd $distChocoDir cd $distChocoDir
#choco push choco push
cd $rootDir cd $rootDir