Browse Source

changed tag code to hopefully behave

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
ed2eaa84a4
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      appveyor.yml

+ 3
- 6
appveyor.yml View File

@ -90,18 +90,15 @@ before_deploy:
if ($env:APPVEYOR_REPO_TAG -eq "true") if ($env:APPVEYOR_REPO_TAG -eq "true")
{ # Copy current site into tags { # Copy current site into tags
& Do-DocFX -o origin_site/tags
& Do-DocFX
& Git-Do & Git-Do
cd origin_site # make things a bit easier cd origin_site # make things a bit easier
$tagPath = "tags/$env:APPVEYOR_REPO_TAG_NAME" $tagPath = "tags/$env:APPVEYOR_REPO_TAG_NAME"
New-Item -ItemType directory -Path $tagPath
#Copy-Item -Path (Get-ChildItem -Exclude ('.git','tags')).FullName -Destination $tagPath -Recurse
#pushd ..
#popd
Move-Item tags/_site $tagPath
#New-Item -ItemType directory -Path $tagPath
Move-Item ../_site $tagPath
git add -A 2>&1 git add -A 2>&1
git commit -q -a -m "Saved tag $env:APPVEYOR_REPO_TAG_NAME" 2>&1 git commit -q -a -m "Saved tag $env:APPVEYOR_REPO_TAG_NAME" 2>&1


Loading…
Cancel
Save