Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs of module on homepage #120

Merged
merged 3 commits into from
Jan 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion ConfluencePS.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ task Deploy -If (
$env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike '*skip-deploy*'
) {
Remove-Module ConfluencePS -ErrorAction SilentlyContinue
}, PublishToGallery
}, PublishToGallery, UpdateHomepage

task PublishToGallery {
assert ($env:PSGalleryAPIKey) "No key for the PSGallery"
Expand All @@ -204,6 +204,15 @@ task PublishToGallery {
Publish-Module -Name ConfluencePS -NuGetApiKey $env:PSGalleryAPIKey
}

task UpdateHomepage {
exec { git clone https://github.com/AtlassianPS/AtlassianPS.github.io }
Set-Location AtlassianPS.github.io
exec { git submodule foreach git pull origin master }
exec { git add modules/ConfluencePS }
exec { git commit -m "Update module ConfluencePS" }
exec { git push }
}

# Synopsis: Push with a version tag.
task PushRelease GitStatus, GetVersion, {
# Done in appveyor.yml with deploy provider.
Expand Down
10 changes: 9 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ environment:
# To encrypt a value in AppVeyor, go to the Account menu and choose "Encrypt data"
PSGalleryAPIKey:
secure: Kffca6TRgAQESKLBk5ghCDMFbMmH2+8DzLyu1M6a7EBRJCwfxaiJeaIXs9SmQz0i
access_token:
secure: PX1R0Ds6r3TTm+wxVbx8MRAgjCRV/juO3cYSEz1MedB/OXvZ3YkqpQGE+X47bcFT
fast_finish: true
matrix:
- image: Visual Studio 2013
Expand Down Expand Up @@ -39,6 +41,12 @@ skip_commits:
pull_requests:
do_not_increment_build_number: true

init:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git config --global user.email "[email protected]"
- git config --global user.name "AtlassianPS automation"

install:
- cmd: git config --global core.autocrlf true
- cmd: npm install -g markdown-spellcheck
Expand Down Expand Up @@ -79,4 +87,4 @@ deploy:
appveyor_repo_tag: false # deploy on tag push only

# on_failure:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))