-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (37 loc) · 1.08 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
displayName: 'Set Node.js version to 16.x'
inputs:
versionSpec: '16.x'
- task: Npm@1
displayName: 'Install packages'
inputs:
command: 'install'
- task: Npm@1
displayName: 'Build'
inputs:
command: 'custom'
customCommand: 'run build'
- task: CmdLine@2
displayName: 'Update GitHub page'
inputs:
script: |
git config --global user.email "[email protected]"
git config --global user.name "Igr Alexánder Fernández Saúco"
git clone https://[email protected]/stoneassemblies/stoneassemblies.github.io.git sync
cp -R public/* sync/
cd sync
git add -A
git commit -a -m "Update web site "
git push https://[email protected]/stoneassemblies/stoneassemblies.github.io.git origin
cd ..
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)