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 0b56cde commit 4207899
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/deployment-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,25 @@ jobs:
run: |
dotnet build gamevault.sln --configuration Release
7z a GameVault.zip gamevault/bin
- name: Get release information
id: release
run: |
$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
- name: Upload Release Artifact
id: upload
uses: actions/upload-release-asset@v1
with:
asset_path: GameVault.zip
asset_name: GameVault.zip
asset_content_type: application/zip
upload_url: "https://api.github.com/repos/Phalcode/gamevault-app/releases/tags/unstable"
upload_url: ${{ env.upload_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4207899

Please sign in to comment.