1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

adding path to download to

This commit is contained in:
Joseph Flinn
2021-01-28 18:59:07 +00:00
parent 975f79697c
commit 1a2e033671

View File

@@ -6,26 +6,25 @@ on:
release_tag_name_input:
description: "Release Tag Name <X.X.X>"
required: true
#release:
#types:
#- prereleased
release:
types:
- prereleased
jobs:
setup:
runs-on: ubuntu-latest
outputs:
#package_version: ${{ steps.get_pkg_version.outputs.package_version }}
#tag_version: ${{ steps.get_pkg_version.outputs.tag_version }}
package_version: ${{ steps.create_tags.outputs.package_version }}
tag_version: ${{ steps.create_tags.outputs.tag_version }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Create Release Vars
- name: Create Deploy version vars
id: create_tags
run: |
if [[ "${{ github.ref}}" -eq "release" ]]; then
case "${RELEASE_TAG_NAME_INPUT:0:1}" in
v)
echo "RELEASE_NAME=${RELEASE_TAG_NAME_INPUT:1}" >> $GITHUB_ENV
@@ -43,18 +42,15 @@ jobs:
exit 1
;;
esac
env:
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
- name: Get package version
if: false
id: get_pkg_version
run: |
else
TAG_VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3)
PKG_VERSION=${TAG_VERSION:1}
echo "::set-output name=package_version::$PKG_VERSION"
echo "::set-output name=tag_version::$TAG_VERSION"
fi
env:
RELEASE_TAG_NAME_INPUT: ${{ github.event.inputs.release_tag_name_input }}
snap:
@@ -130,7 +126,7 @@ jobs:
with:
mode: download
tag_name: ${{ env.TAG_VERSION }}
assets: bitwarden-cli.${{ env.PKG_VERSION }}.nupkg
assets: bitwarden-cli.${{ env.PKG_VERSION }}.nupkg|./dist/bitwarden-cli.${{ env.PKG_VERSION }}.nupkg
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -138,8 +134,9 @@ jobs:
shell: pwsh
run: |
# In place of ./scripts/choco-update.ps1
New-Item -ItemType directory -Path ./dist
Move-Item -Path bitwarden.${{ env.PKG_VERSION }}.nupkg -Destination ./dist
#New-Item -ItemType directory -Path ./dist
#Move-Item -Path bitwarden-cli.${{ env.PKG_VERSION }}.nupkg -Destination ./dist
cd ./dist
#choco push