mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-18 17:00:18 +00:00
Disable CircleCi and AppVeyor deploys on commits, Fixes: #63
This commit is contained in:
parent
03fcdcf91c
commit
2e17ed390c
@ -21,26 +21,11 @@ build_script:
|
||||
- "%PYTHON%\\python.exe scripts\\build.py validate -b dist"
|
||||
- yarn electron-builder --win --x64
|
||||
|
||||
- ps: $OutputDirectory = $((Get-Date).ToString('yyyy-MM-dd'))
|
||||
- ps: If ($env:APPVEYOR_REPO_TAG -eq $false) { New-Item -ItemType Directory -Path "$OutputDirectory" }
|
||||
- ps: If ($env:APPVEYOR_REPO_TAG -eq $false) { move build\*.exe "$OutputDirectory" }
|
||||
- ps: If ($env:APPVEYOR_REPO_TAG -eq $false) { cd $OutputDirectory; Get-ChildItem -Filter '*.exe' | Rename-Item -NewName {$_.Name -replace ".exe","-$env:APPVEYOR_REPO_BRANCH-$env:APPVEYOR_BUILD_NUMBER.exe"} }
|
||||
- ps: If ($env:APPVEYOR_REPO_TAG -eq $false) { $execs = Get-ChildItem -Filter '*.exe'; $artifact = $execs[0].basename; }
|
||||
- ps: If ($env:APPVEYOR_REPO_TAG -eq $false) { cd ..; Push-AppveyorArtifact "$((Get-Date).ToString('yyyy-MM-dd'))\*.exe" -FileName "$((Get-Date).ToString('yyyy-MM-dd'))\$artifact.exe" }
|
||||
|
||||
test: off
|
||||
|
||||
deploy:
|
||||
- provider: FTP
|
||||
protocol: sftp
|
||||
host: frs.sourceforge.net
|
||||
username: gns3build
|
||||
password:
|
||||
secure: YRiLLoY27UOZ8QJHqqdESBQFfPfENKV0cLI/QFSsbWc=
|
||||
folder: "../../../../frs/project/gns-3/Nightly Builds"
|
||||
artifact: /.*\.exe/
|
||||
on:
|
||||
appveyor_repo_tag: false # deploy on branch only
|
||||
artifacts:
|
||||
- path: 'GNS3*.exe'
|
||||
name: gns3-web-ui
|
||||
|
||||
environment:
|
||||
GH_TOKEN:
|
||||
|
@ -55,18 +55,6 @@ jobs:
|
||||
path: artifacts
|
||||
destination: artifacts
|
||||
|
||||
- deploy:
|
||||
name: Deploying on SourceForge
|
||||
command: |
|
||||
echo "Deploying on SourceForge"
|
||||
ssh-keyscan -H frs.sourceforge.net >> ~/.ssh/known_hosts
|
||||
mkdir -p artifacts/release
|
||||
cd artifacts; for file in *.dmg; do mv "$file" "release/${file%.dmg}-${CIRCLE_BRANCH}-${CIRCLE_BUILD_NUM}.dmg"; done; cd ..
|
||||
echo "mkdir \"/home/frs/project/gns-3/Nightly Builds/$(date +"%Y-%m-%d")\"" | sftp gns3build@frs.sourceforge.net || true
|
||||
echo "Copying to SourceForge"
|
||||
scp artifacts/release/* gns3build@frs.sourceforge.net:"/home/frs/project/gns-3/Nightly\ Builds/$(date +"%Y-%m-%d")/"
|
||||
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_deploy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user