Skip to content

Commit

Permalink
#43: update publishing script
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 7, 2017
1 parent 3a5132c commit 894dd80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Scripts/Jenkinsfile.deploy
Expand Up @@ -5,6 +5,7 @@
// - GIT_CREDENTIALS: credentials to download the source code
// - MAINTAINERS: space-separated email list
// - POWERSHELL: path to PowerShell executable
// - YARN: path to Yarn executable
node {
stage('Checkout') {
git branch: GIT_BRANCH,
Expand All @@ -14,7 +15,7 @@ node {
}

stage('Talks') {
bat "$POWERSHELL -File Scripts/Prepare-Talks.ps1 $YARN $TARGET_TALKS_PATH"
bat "$POWERSHELL -File Scripts/Prepare-Talks.ps1 $YARN"
}

stage('Publish') {
Expand Down
5 changes: 1 addition & 4 deletions Scripts/Prepare-Talks.ps1
@@ -1,7 +1,6 @@
param (
[string] $yarn = 'yarn',
[string] $RepoPath = "$PSScriptRoot/../ForneverMind/wwwroot/talks",
[string] $TargetPath
[string] $RepoPath = "$PSScriptRoot/../ForneverMind/wwwroot/talks"
)

$ErrorActionPreference = 'Stop'
Expand Down Expand Up @@ -34,5 +33,3 @@ function yarnInstall($name, $flags) {

yarnInstall modern-programming --ignore-engines
yarnInstall net-core-slides

Copy-Item -Recurse -Force $RepoPath $TargetPath
4 changes: 2 additions & 2 deletions appveyor.yml
@@ -1,7 +1,7 @@
version: 1.5.0.{build}
install:
- ps: Scripts/Prepare-Talks.ps1 yarn -TargetPath talks
- dotnet migrate libraries/RssSyndication/src/
- ps: Scripts/Prepare-Talks.ps1 yarn
- dotnet migrate libraries\RssSyndication
- dotnet restore
build_script:
- dotnet build
Expand Down

0 comments on commit 894dd80

Please sign in to comment.