switching other fetch release assset to xotl's

This commit is contained in:
Joseph Flinn 2021-01-28 19:45:55 +00:00
parent 6e6b6c8b59
commit c1be8d9009
1 changed files with 9 additions and 32 deletions

View File

@ -69,21 +69,16 @@ jobs:
#with: #with:
# snapcraft_token: ${{ secrets.SNAP_TOKEN }} # snapcraft_token: ${{ secrets.SNAP_TOKEN }}
- name: Get snap release asset - name: setup
uses: dsaltares/fetch-gh-release-asset@0.0.5 run: mkdir dist
with:
version: tags/${{ env.TAG_VERSION }}
file: bw_${{ env.PKG_VERSION }}_amd64.snap
env:
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: move assets - name: Test getting choco release asset - windows
run: | uses: Xotl/cool-github-releases@v1
echo "Hopefully this is temporary until release 0.0.6 of the fetch-gh-release-asset is released" with:
mkdir dist mode: download
mv bw_${{ env.PKG_VERSION }}_amd64.snap -t dist tag_name: ${{ env.TAG_VERSION }}
assets: bw_${{ env.PKG_VERSION }}_amd64.snap|./dist/bw_${{ env.PKG_VERSION }}_amd64.snap
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: test - name: test
run: ls -alht dist run: ls -alht dist
@ -111,16 +106,6 @@ jobs:
env: env:
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
#- name: Get choco release asset
# uses: dsaltares/fetch-gh-release-asset@0.0.5
# with:
# version: tags/${{ env.TAG_VERSION }}
# file: bitwarden.${{ env.PKG_VERSION }}.nupkg
# env:
# PKG_VERSION: ${{ needs.setup.outputs.package_version }}
# TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: make dist dir - name: make dist dir
shell: pwsh shell: pwsh
run: New-Item -ItemType directory -Path ./dist run: New-Item -ItemType directory -Path ./dist
@ -133,20 +118,12 @@ jobs:
assets: bitwarden-cli.${{ env.PKG_VERSION }}.nupkg|./dist/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 }} github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Push to Chocolatey - name: Push to Chocolatey
shell: pwsh shell: pwsh
run: | run: |
# In place of ./scripts/choco-update.ps1
#New-Item -ItemType directory -Path ./dist
#Move-Item -Path bitwarden-cli.${{ env.PKG_VERSION }}.nupkg -Destination ./dist/bitwarden-cli.${{ env.PKG_VERSION }}.nupkg
cd dist cd dist
#choco push #choco push
- name: test
run: ls dist
npm: npm:
name: Publish NPM name: Publish NPM