Skip to content

Commit

Permalink
Disable creation of winget package on deploy - it has dependencies on…
Browse files Browse the repository at this point in the history
… published artifacts (which are not published yet)
  • Loading branch information
erikbra committed Apr 6, 2023
1 parent e1aa404 commit 7da5d9a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,31 +224,31 @@ jobs:
name: grate_${{ needs.set-version-number.outputs.nuGetVersion }}-1_${{ steps.get-arch.outputs.arch}}.deb
path: ./installers/deb/grate_${{ needs.set-version-number.outputs.nuGetVersion }}-1_${{ steps.get-arch.outputs.arch }}.deb

build-winget:
name: Winget - Update package manifest in the OWC
needs:
- set-version-number
- build-msi
runs-on: windows-latest
if: ${{ needs.set-version-number.outputs.is-release == 'true' }}

steps:
- name: Winget-Create
run: |
$version = "$($env:version)"
# Download wingetcreate
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
$packageUrl="https://github.com/erikbra/grate/releases/download/$version/grate-$version.msi"
echo "Running ./wingetcreate.exe update erikbra.grate -u $packageUrl -v $version -t `"$env:WINGET_GH_PAT`" --submit"
./wingetcreate.exe update erikbra.grate -u $packageUrl -v $version -t "$env:WINGET_GH_PAT" --submit
env:
WINGET_GH_PAT: ${{ secrets.WINGET_GH_PAT }}
#version: "1.4.0"
version: "${{ needs.set-version-number.outputs.nuGetVersion }}"
# build-winget:
# name: Winget - Update package manifest in the OWC
# needs:
# - set-version-number
# - build-msi
# runs-on: windows-latest
# if: ${{ needs.set-version-number.outputs.is-release == 'true' }}

# steps:
# - name: Winget-Create
# run: |

# $version = "$($env:version)"

# # Download wingetcreate
# iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe

# $packageUrl="https://github.com/erikbra/grate/releases/download/$version/grate-$version.msi"

# echo "Running ./wingetcreate.exe update erikbra.grate -u $packageUrl -v $version -t `"$env:WINGET_GH_PAT`" --submit"
# ./wingetcreate.exe update erikbra.grate -u $packageUrl -v $version -t "$env:WINGET_GH_PAT" --submit
# env:
# WINGET_GH_PAT: ${{ secrets.WINGET_GH_PAT }}
# #version: "1.4.0"
# version: "${{ needs.set-version-number.outputs.nuGetVersion }}"


test:
Expand Down

0 comments on commit 7da5d9a

Please sign in to comment.