Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:

- name: Build Release
shell: pwsh
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
dotnet restore ./src/Captail/Captail.csproj --locked-mode
dotnet build ./Captail.sln -c Release --no-restore `
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:

- name: Build release packages
shell: pwsh
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
dotnet restore ./src/Captail/Captail.csproj --locked-mode
./tools/BuildRelease.ps1 `
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/store-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:

- name: Build Microsoft Store package
shell: pwsh
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
./tools/BuildStorePackage.ps1 `
-Version $env:RELEASE_VERSION `
Expand Down
8 changes: 7 additions & 1 deletion tools/AcquireFfmpegRuntime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ else {
"ffmpeg-$version-win64-lgpl-shared-8.1.zip"
}
$releaseApiUrl = "https://api.github.com/repos/BtbN/FFmpeg-Builds/releases/tags/latest"
$release = Invoke-RestMethod -UseBasicParsing -Uri $releaseApiUrl -Headers @{
$githubHeaders = @{
Accept = "application/vnd.github+json"
"User-Agent" = "Captail-build"
}
$githubToken = [Environment]::GetEnvironmentVariable("GITHUB_TOKEN")
if (-not [string]::IsNullOrWhiteSpace($githubToken)) {
$githubHeaders.Authorization = "Bearer $githubToken"
}
$release = Invoke-RestMethod -UseBasicParsing -Uri $releaseApiUrl `
-Headers $githubHeaders
$asset = $release.assets | Where-Object { $_.name -eq $archiveName } |
Select-Object -First 1
if (-not $asset) {
Expand Down
Loading