aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-09-06 20:59:03 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-09-06 20:59:03 -0400
commitbcffc932a8503cd9784fa8b999737fa5a6857b03 (patch)
tree05915bac17b92e71b22f1a7d1ec4a3c610265c96
parent7f1482c5d77b1b5f7e369ade925d2351d7623fa1 (diff)
autobuild spec test 1
-rw-r--r--.onedev-buildspec.yml40
1 files changed, 39 insertions, 1 deletions
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml
index db67422..8e2b4d8 100644
--- a/.onedev-buildspec.yml
+++ b/.onedev-buildspec.yml
@@ -1,4 +1,4 @@
-version: 33
+version: 35
jobs:
- name: Push to GitHub
steps:
@@ -37,3 +37,41 @@ jobs:
maxRetries: 3
retryDelay: 30
timeout: 3600
+
+- name: Build and publish
+ jobExecutor: primary-shell-executor
+ steps:
+ - !CheckoutStep
+ name: Code checkout
+ cloneCredential: !DefaultCredential {}
+ withLfs: false
+ withSubmodules: false
+ checkoutPath: '@project_name@/'
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !CommandStep
+ name: VNBuild build
+ runInContainer: false
+ interpreter: !DefaultInterpreter
+ commands: |
+ vnbuild build -S --verbose
+ useTTY: true
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ - !CommandStep
+ name: VNBuild publish
+ runInContainer: false
+ interpreter: !DefaultInterpreter
+ commands: |
+ vnbuild publish --ftp "@secret:ftp_server_address@" --sign --verbose
+ envVars:
+ - name: FTP_USERNAME
+ value: '@secret:ftp_username@'
+ - name: FTP_PASSWORD
+ value: '@secret:ftp_password@'
+ useTTY: true
+ condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
+ triggers:
+ - !BranchUpdateTrigger {}
+ retryCondition: never
+ maxRetries: 3
+ retryDelay: 30
+ timeout: 3600