mirror of https://github.com/odrling/Aegisub
ci: Use GITHUB_TOKEN if available
This commit is contained in:
parent
d08726606f
commit
8fc301fad4
|
@ -119,7 +119,10 @@ jobs:
|
||||||
# Windows artifacts
|
# Windows artifacts
|
||||||
- name: Generate Windows installer
|
- name: Generate Windows installer
|
||||||
if: matrix.config.os == 'windows-latest'
|
if: matrix.config.os == 'windows-latest'
|
||||||
run: meson compile win-installer -C build
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run:
|
||||||
|
meson compile win-installer -C build
|
||||||
|
|
||||||
- name: Generate Windows portable installer
|
- name: Generate Windows portable installer
|
||||||
if: matrix.config.os == 'windows-latest'
|
if: matrix.config.os == 'windows-latest'
|
||||||
|
|
|
@ -18,6 +18,11 @@ $Env:SOURCE_ROOT = $SourceRoot
|
||||||
|
|
||||||
Set-Location $DepsDir
|
Set-Location $DepsDir
|
||||||
|
|
||||||
|
$GitHeaders = @{}
|
||||||
|
if (Test-Path 'Env:GITHUB_TOKEN') {
|
||||||
|
$GitHeaders = @{ 'Authorization' = 'Bearer ' + $Env:GITHUB_TOKEN }
|
||||||
|
}
|
||||||
|
|
||||||
# DepCtrl
|
# DepCtrl
|
||||||
if (!(Test-Path DependencyControl)) {
|
if (!(Test-Path DependencyControl)) {
|
||||||
git clone https://github.com/TypesettingTools/DependencyControl.git
|
git clone https://github.com/TypesettingTools/DependencyControl.git
|
||||||
|
@ -38,7 +43,7 @@ if (!(Test-Path luajson)) {
|
||||||
|
|
||||||
# Avisynth
|
# Avisynth
|
||||||
if (!(Test-Path AviSynthPlus64)) {
|
if (!(Test-Path AviSynthPlus64)) {
|
||||||
$avsReleases = Invoke-WebRequest "https://api.github.com/repos/AviSynth/AviSynthPlus/releases/latest" -UseBasicParsing | ConvertFrom-Json
|
$avsReleases = Invoke-WebRequest "https://api.github.com/repos/AviSynth/AviSynthPlus/releases/latest" -Headers $GitHeaders -UseBasicParsing | ConvertFrom-Json
|
||||||
$avsUrl = $avsReleases.assets[0].browser_download_url
|
$avsUrl = $avsReleases.assets[0].browser_download_url
|
||||||
Invoke-WebRequest $avsUrl -OutFile AviSynthPlus.7z -UseBasicParsing
|
Invoke-WebRequest $avsUrl -OutFile AviSynthPlus.7z -UseBasicParsing
|
||||||
7z x AviSynthPlus.7z
|
7z x AviSynthPlus.7z
|
||||||
|
@ -50,7 +55,7 @@ if (!(Test-Path AviSynthPlus64)) {
|
||||||
if (!(Test-Path VSFilter)) {
|
if (!(Test-Path VSFilter)) {
|
||||||
$vsFilterDir = New-Item -ItemType Directory VSFilter
|
$vsFilterDir = New-Item -ItemType Directory VSFilter
|
||||||
Set-Location $vsFilterDir
|
Set-Location $vsFilterDir
|
||||||
$vsFilterReleases = Invoke-WebRequest "https://api.github.com/repos/pinterf/xy-VSFilter/releases/latest" -UseBasicParsing | ConvertFrom-Json
|
$vsFilterReleases = Invoke-WebRequest "https://api.github.com/repos/pinterf/xy-VSFilter/releases/latest" -Headers $GitHeaders -UseBasicParsing | ConvertFrom-Json
|
||||||
$vsFilterUrl = $vsFilterReleases.assets[0].browser_download_url
|
$vsFilterUrl = $vsFilterReleases.assets[0].browser_download_url
|
||||||
Invoke-WebRequest $vsFilterUrl -OutFile VSFilter.7z -UseBasicParsing
|
Invoke-WebRequest $vsFilterUrl -OutFile VSFilter.7z -UseBasicParsing
|
||||||
7z x VSFilter.7z
|
7z x VSFilter.7z
|
||||||
|
|
Loading…
Reference in New Issue