-
Notifications
You must be signed in to change notification settings - Fork 1
/
.woodpecker.yml
50 lines (45 loc) · 1.78 KB
/
.woodpecker.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
45
46
47
48
49
50
steps:
docs:
image: julia:1.10.5
pull: true
when:
- event: [push, manual] # workflow should run if you execute it manually and on each push
secrets: [ cbtoken, cbmail, ftp, ftp_pass, ftp_user ]
commands:
- uname -a
- julia --version
- export CI="1"
- mkdir ~/NeuroAnalyzer
- mkdir ~/NeuroAnalyzer/plugins
- apt-get update
- apt-get install -y xvfb ncftp git
- git clone https://codeberg.org/AdamWysokinski/NeuroAnalyzer-docs NA-docs
- git clone https://codeberg.org/AdamWysokinski/NeuroAnalyzer.jl
- cd NeuroAnalyzer.jl/docs
- cat header.md > src/index.md
- ./template.sh >> src/index.md
- DISPLAY=:0 xvfb-run -a -s '-screen 0 1024x768x24' julia make_md.jl
- cp build/index.md ../../NA-docs/Documentation.md
- DISPLAY=:0 xvfb-run -a -s '-screen 0 1024x768x24' julia make_html.jl
- mv build docs
- sed -i 's/Edit on GitHub/Edit on Codeberg/g' docs/index.html
- sed -i 's///g' docs/index.html
- ncftpput -R -u "$FTP_USER" -p "$FTP_PASS" $FTP / docs
- cd ../../NA-docs
- git config --global user.email "$CBMAIL"
- git config --global user.name "CI Builder"
- git config --global init.defaultBranch main
- git remote set-url origin https://[email protected]/AdamWysokinski/NeuroAnalyzer-docs.git
- git add --all
- ./push_docs.sh
test:
image: julia:1.10.5
pull: true
when:
- event: manual # workflow should run if you execute it manually
commands:
- mkdir ~/NeuroAnalyzer
- mkdir ~/NeuroAnalyzer/plugins
- apt-get update
- apt-get install -y xvfb
- DISPLAY=:0 xvfb-run -a -s '-screen 0 1024x768x24' julia -e "using Pkg; Pkg.activate(@__DIR__); Pkg.instantiate(); Pkg.test()"