From b28c8c57c2b0afbb16ec3f99026cba7dce6a6db7 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 24 Oct 2017 08:30:12 +0200 Subject: [PATCH] ps in script? --- .appveyor.yml | 17 +---------------- resources/scripts/.appveyor-install-win.ps1 | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100755 resources/scripts/.appveyor-install-win.ps1 diff --git a/.appveyor.yml b/.appveyor.yml index 17b0c972e..30d9d3a5b 100755 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -45,19 +45,4 @@ build_script: - nmake windows_all on_success: - - ps: ls - - ps: git clone -q --depth=1 https://github.com/martinrotter/rssguard.wiki.git C:\rssguard-wiki - - ps: git config --global credential.helper store - - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" - - ps: git config --global user.email "rotter.martinos@gmail.com" - - ps: git config --global user.name "martinrotter" - - ps: $file = (Get-ChildItem '*.7z').Name - - ps: echo "File to upload: $file" - - ps: $url = curl.exe --upload-file "$file" "https://transfer.sh/$file" --silent - - ps: echo "Obtained URL: $url" - - ps: echo " from powershell $url " >> C:\rssguard-wiki\Windows-development-builds.md - - ps: cd C:\rssguard-wiki - - ps: git add *.* - - ps: git commit -m "New files." - - ps: git pull origin master - - ps: git push origin master -v \ No newline at end of file + - ps: .\..\resources\scripts\.appveyor-install-win.ps1 \ No newline at end of file diff --git a/resources/scripts/.appveyor-install-win.ps1 b/resources/scripts/.appveyor-install-win.ps1 new file mode 100755 index 000000000..d5d7b46d6 --- /dev/null +++ b/resources/scripts/.appveyor-install-win.ps1 @@ -0,0 +1,16 @@ +ls +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" +echo " from powershell $url " >> 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 \ No newline at end of file