Skip to content

Commit

Permalink
Update deployment-develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 authored Dec 5, 2024
1 parent 4207899 commit 42f6c80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deployment-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: setup
uses: actions/[email protected]
with:
dotnet-version: '6.x'
dotnet-version: '8.x'

- name: Build .NET solution
id: build
Expand All @@ -33,10 +33,11 @@ jobs:
$repo = "Phalcode/gamevault-app"
$tag = "unstable"
$releaseApiUrl = "https://api.github.com/repos/$repo/releases/tags/$tag"
$release = Invoke-RestMethod -Uri $releaseApiUrl
$uploadUrl = $release.upload_url -replace "{?name,label}", ""
Write-Host "Release URL: $uploadUrl"
echo "upload_url=$uploadUrl" >> $env:GITHUB_ENV
$release = Invoke-RestMethod -Uri $releaseApiUrl -Headers @{ Authorization = "Bearer $env:GITHUB_TOKEN" }
$uploadUrl = $release.upload_url -replace "{\?name,label}", ""
Write-Host "upload_url=$uploadUrl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Artifact
id: upload
Expand Down

0 comments on commit 42f6c80

Please sign in to comment.