mirror of
https://github.com/bitwarden/cli
synced 2025-12-17 16:53:13 +00:00
trying a download action
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -176,6 +176,12 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Download Windows Nuget
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg
|
||||||
|
path: ./dist/bitwarden-cli.${{ env.PACKAGE_VERSION }}.nupkg
|
||||||
|
|
||||||
#- name: Setup Chocolatey
|
#- name: Setup Chocolatey
|
||||||
# run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
|
# run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
|
||||||
# env:
|
# env:
|
||||||
@@ -191,16 +197,14 @@ jobs:
|
|||||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||||
$rootDir = $dir
|
$rootDir = $dir
|
||||||
$distDir = $rootDir + "\dist"
|
$distDir = $rootDir + "\dist"
|
||||||
$distChocoDir = $distDir + "\chocolatey"
|
$distChocoDir = $distDir
|
||||||
|
|
||||||
New-Item -ItemType directory -Path $distChocoDir | Out-Null
|
#New-Item -ItemType directory -Path $distChocoDir | Out-Null
|
||||||
|
|
||||||
$nupkg = "bitwarden-cli." + $version + ".nupkg"
|
$nupkg = "bitwarden-cli." + $version + ".nupkg"
|
||||||
$uri = "https://github.com/bitwarden/cli/releases/download/v" + $version + "/" + $nupkg
|
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
||||||
Invoke-RestMethod -Uri $uri -OutFile $($distChocoDir + "\\" + $nupkg)
|
|
||||||
|
|
||||||
cd $distChocoDir
|
cd ./dist
|
||||||
|
Get-ChildItem
|
||||||
#choco push
|
#choco push
|
||||||
Write-Host "[+] Intead of pushing with choco, we are testing and writing this out"
|
Write-Host "[+] Intead of pushing with choco, we are testing and writing this out"
|
||||||
Write-Host " Nuget Packge: $env:distChocoDir\\$env:nupkg"
|
Write-Host " Nuget Packge: $env:distChocoDir\\$env:nupkg"
|
||||||
|
|||||||
Reference in New Issue
Block a user