rssguard/resources/scripts/.appveyor-install-win.ps1
2017-10-24 09:19:38 +02:00

27 lines
1.0 KiB
PowerShell
Executable File

ls
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding
chcp 65001
$OutputEncoding
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"
git config --global user.email "rotter.martinos@gmail.com"
git config --global user.name "martinrotter"
$file = (Get-ChildItem '*.7z').Name
echo "File to upload: $file"
$url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent
echo "Obtained URL: $url"
$git_revision = git rev-parse --short HEAD
$date = Get-Date -format "MM-dd-yyyy HH:mm:ss"
echo "| $date | [$git_revision](https://github.com/martinrotter/rssguard/commit/$git_revision) | [transfer.sh]($url) | " | ac -Encoding "utf8" C:\rssguard-wiki\Windows-development-builds.md
cd C:\rssguard-wiki
git add *.*
git commit -m "New files."
git pull origin master
git push origin master -v