mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-17 22:38:08 +00:00
Disable CircleCi and AppVeyor deploys on commits, Fixes: #63
This commit is contained in:
@ -21,26 +21,11 @@ build_script:
|
|||||||
- "%PYTHON%\\python.exe scripts\\build.py validate -b dist"
|
- "%PYTHON%\\python.exe scripts\\build.py validate -b dist"
|
||||||
- yarn electron-builder --win --x64
|
- 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
|
test: off
|
||||||
|
|
||||||
deploy:
|
artifacts:
|
||||||
- provider: FTP
|
- path: 'GNS3*.exe'
|
||||||
protocol: sftp
|
name: gns3-web-ui
|
||||||
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
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GH_TOKEN:
|
GH_TOKEN:
|
||||||
|
@ -55,18 +55,6 @@ jobs:
|
|||||||
path: artifacts
|
path: artifacts
|
||||||
destination: 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:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
|
Reference in New Issue
Block a user