forked from AOSC-Dev/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
24 lines (19 loc) · 947 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: InstallSSHKey@0
inputs:
knownHostsEntry: '$(UPLOAD_HOST) ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGan/F63NCg5xLo6ooCWfHoXfaDw4mDFwZC/0kMdgsBrwxjyI6sjWexdWDz1pntsHbXjoc4jMOqoU9ZIyk26NE8='
sshPublicKey: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUiF8B79DhQdFagc6zg+5VgWeSIXFWYYn/fTE7ltt8J aosc@aosc'
sshPassphrase: '$(KEY_PASSWD)'
sshKeySecureFile: 'upload_key'
condition: ne(variables['Build.Reason'], 'PullRequest')
- bash: ./.ci/ci.sh
displayName: 'Install Zola'
- bash: ./build.sh
displayName: 'Build the pages'
- bash: "rsync -rlOvhze ssh --progress public/* 'upload@$(UPLOAD_HOST):/srv/aosc-wiki/' && echo \"Visit your site at: https://wiki.aosc.io\""
displayName: 'Upload the files'
condition: and(ne(variables['Build.Reason'], 'PullRequest'), succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))