finish pipeline edits
This commit is contained in:
parent
2f10ca8599
commit
5e12bf60b5
@ -171,72 +171,72 @@ steps:
|
|||||||
targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
targetPath: '$(Build.ArtifactStagingDirectory)/IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
artifact: 'IW4MAdmin-$(Build.BuildNumber).zip'
|
artifact: 'IW4MAdmin-$(Build.BuildNumber).zip'
|
||||||
|
|
||||||
#- task: FtpUpload@2
|
- task: FtpUpload@2
|
||||||
# displayName: 'Upload zip file to website'
|
displayName: 'Upload zip file to website'
|
||||||
# inputs:
|
inputs:
|
||||||
# credentialsOption: 'inputs'
|
credentialsOption: 'inputs'
|
||||||
# serverUrl: '$(FTPUrl)'
|
serverUrl: '$(FTPUrl)'
|
||||||
# username: '$(FTPUsername)'
|
username: '$(FTPUsername)'
|
||||||
# password: '$(FTPPassword)'
|
password: '$(FTPPassword)'
|
||||||
# rootDirectory: '$(Build.ArtifactStagingDirectory)'
|
rootDirectory: '$(Build.ArtifactStagingDirectory)'
|
||||||
# filePatterns: '*.zip'
|
filePatterns: '*.zip'
|
||||||
# remoteDirectory: 'IW4MAdmin/Download'
|
remoteDirectory: 'IW4MAdmin/Download'
|
||||||
# clean: false
|
clean: false
|
||||||
# cleanContents: false
|
cleanContents: false
|
||||||
# preservePaths: false
|
preservePaths: false
|
||||||
# trustSSL: false
|
trustSSL: false
|
||||||
#
|
|
||||||
#- task: FtpUpload@2
|
- task: FtpUpload@2
|
||||||
# displayName: 'Upload version info to website'
|
displayName: 'Upload version info to website'
|
||||||
# inputs:
|
inputs:
|
||||||
# credentialsOption: 'inputs'
|
credentialsOption: 'inputs'
|
||||||
# serverUrl: '$(FTPUrl)'
|
serverUrl: '$(FTPUrl)'
|
||||||
# username: '$(FTPUsername)'
|
username: '$(FTPUsername)'
|
||||||
# password: '$(FTPPassword)'
|
password: '$(FTPPassword)'
|
||||||
# rootDirectory: '$(Build.ArtifactStagingDirectory)'
|
rootDirectory: '$(Build.ArtifactStagingDirectory)'
|
||||||
# filePatterns: 'version_$(releaseType).txt'
|
filePatterns: 'version_$(releaseType).txt'
|
||||||
# remoteDirectory: 'IW4MAdmin'
|
remoteDirectory: 'IW4MAdmin'
|
||||||
# clean: false
|
clean: false
|
||||||
# cleanContents: false
|
cleanContents: false
|
||||||
# preservePaths: false
|
preservePaths: false
|
||||||
# trustSSL: false
|
trustSSL: false
|
||||||
#
|
|
||||||
#- task: GitHubRelease@1
|
- task: GitHubRelease@1
|
||||||
# displayName: 'Make GitHub release'
|
displayName: 'Make GitHub release'
|
||||||
# inputs:
|
inputs:
|
||||||
# gitHubConnection: 'github.com_RaidMax'
|
gitHubConnection: 'github.com_RaidMax'
|
||||||
# repositoryName: 'RaidMax/IW4M-Admin'
|
repositoryName: 'RaidMax/IW4M-Admin'
|
||||||
# action: 'create'
|
action: 'create'
|
||||||
# target: '$(Build.SourceVersion)'
|
target: '$(Build.SourceVersion)'
|
||||||
# tagSource: 'userSpecifiedTag'
|
tagSource: 'userSpecifiedTag'
|
||||||
# tag: '$(Build.BuildNumber)-$(releaseType)'
|
tag: '$(Build.BuildNumber)-$(releaseType)'
|
||||||
# title: 'IW4MAdmin $(Build.BuildNumber) ($(releaseType))'
|
title: 'IW4MAdmin $(Build.BuildNumber) ($(releaseType))'
|
||||||
# assets: '$(Build.ArtifactStagingDirectory)/*.zip'
|
assets: '$(Build.ArtifactStagingDirectory)/*.zip'
|
||||||
# isPreRelease: $(isPreRelease)
|
isPreRelease: $(isPreRelease)
|
||||||
# releaseNotesSource: 'inline'
|
releaseNotesSource: 'inline'
|
||||||
# releaseNotesInline: 'todo'
|
releaseNotesInline: 'todo'
|
||||||
# changeLogCompareToRelease: 'lastNonDraftRelease'
|
changeLogCompareToRelease: 'lastNonDraftRelease'
|
||||||
# changeLogType: 'commitBased'
|
changeLogType: 'commitBased'
|
||||||
#
|
|
||||||
#- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
# displayName: 'Update master version'
|
displayName: 'Update master version'
|
||||||
# inputs:
|
inputs:
|
||||||
# targetType: 'inline'
|
targetType: 'inline'
|
||||||
# script: |
|
script: |
|
||||||
# $payload = @{
|
$payload = @{
|
||||||
# 'current-version-$(releaseType)' = '$(Build.BuildNumber)'
|
'current-version-$(releaseType)' = '$(Build.BuildNumber)'
|
||||||
# 'jwt-secret' = '$(JWTSecret)'
|
'jwt-secret' = '$(JWTSecret)'
|
||||||
# } | ConvertTo-Json
|
} | ConvertTo-Json
|
||||||
#
|
|
||||||
#
|
|
||||||
# $params = @{
|
$params = @{
|
||||||
# Uri = 'http://api.raidmax.org:5000/version'
|
Uri = 'http://api.raidmax.org:5000/version'
|
||||||
# Method = 'POST'
|
Method = 'POST'
|
||||||
# Body = $payload
|
Body = $payload
|
||||||
# ContentType = 'application/json'
|
ContentType = 'application/json'
|
||||||
# }
|
}
|
||||||
#
|
|
||||||
# Invoke-RestMethod @params
|
Invoke-RestMethod @params
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish artifact for analysis'
|
displayName: 'Publish artifact for analysis'
|
||||||
|
@ -78,6 +78,6 @@
|
|||||||
</ProjectExtensions>
|
</ProjectExtensions>
|
||||||
|
|
||||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||||
<Exec Command="if $(ConfigurationName) == Debug ( 
powershell -Command wget https://raw.githubusercontent.com/iconic/open-iconic/master/font/css/open-iconic-bootstrap.scss -o $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap.scss
echo d | xcopy /f /y $(ProjectDir)wwwroot\lib\open-iconic\font\fonts $(ProjectDir)wwwroot\font\
powershell -Command "((Get-Content -path $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap.scss -Raw) -replace '../fonts/','/fonts/') | Set-Content -Path $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap.scss"
)" />
|
<Exec Command="if $(ConfigurationName) == Debug ( 
powershell -Command wget https://raw.githubusercontent.com/iconic/open-iconic/master/font/css/open-iconic-bootstrap.scss -o $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap-override.scss
echo d | xcopy /f /y $(ProjectDir)wwwroot\lib\open-iconic\font\fonts $(ProjectDir)wwwroot\font\
powershell -Command "((Get-Content -path $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap-override.scss -Raw) -replace '../fonts/','/fonts/') | Set-Content -Path $(ProjectDir)wwwroot\lib\open-iconic\font\css\open-iconic-bootstrap-override.scss"
)" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user