This commit is contained in:
Martin Rotter 2019-06-12 08:39:37 +02:00
parent 8eada7eaa3
commit a770bfab8f

View File

@ -1,8 +1,7 @@
ls
cd "rssguard-build\src\rssguard"
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding
# Clone wiki.
git clone -q --depth=1 https://github.com/martinrotter/rssguard.wiki.git "C:\rssguard-wiki"
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
@ -13,7 +12,7 @@ $git_revision = git rev-parse --short HEAD
$date = (Get-Date).ToUniversalTime().ToString("MM-dd-yyyy HH:mm:ss UTC")
$wikifile = 'C:\rssguard-wiki\Development-builds.md'
# Upload 7z.
$file = (Get-ChildItem '*.7z').Name
echo "File to upload: $file"
$url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent
@ -25,7 +24,7 @@ $wikiline = "| Windows | $date | [$git_revision](https://github.com/martinrotter
(Get-Content $wikifile) -replace $regex, $wikiline | Set-Content -Encoding "utf8" $wikifile
# Upload exe.
$file = (Get-ChildItem '*-win64.exe').Name
echo "File to upload: $file"
$url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent
@ -37,7 +36,7 @@ $wikiline = "| Windows | $date | [$git_revision](https://github.com/martinrotter
(Get-Content $wikifile) -replace $regex, $wikiline | Set-Content -Encoding "utf8" $wikifile
# Push new wiki.
cd "C:\rssguard-wiki"
git add *.*
git commit -m "New files."