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 30703b2 commit 55dce79
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/deployment-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,12 @@ jobs:
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 -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
uses: actions/upload-release-asset@v1
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
asset_path: GameVault.zip
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: GameVault.zip
asset_name: GameVault.zip
asset_content_type: application/zip
upload_url: ${{ env.upload_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: unstable
overwrite: true
prerelease: true

0 comments on commit 55dce79

Please sign in to comment.