1
+ # THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE.
2
+ # Copyright (C) NIWA & British Crown (Met Office) & Contributors.
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
17
+ # Deploy a new version of the documentation or rebuild an existing one.
18
+
19
+ # Note: All changes made to the gh-pages branch are non-destructive
20
+ # (i.e. no force pushing) so all changes can be undone.
21
+
22
+ name : deploy
23
+
24
+ on :
25
+ workflow_dispatch :
26
+
27
+
28
+ concurrency :
29
+ group : ${{ github.workflow }}-${{ github.ref }}
30
+
31
+ jobs :
32
+ deploy :
33
+ runs-on : ubuntu-latest
34
+ timeout-minutes : 20
35
+ defaults :
36
+ run :
37
+ # use login shell for conda activation
38
+ shell : bash -leo pipefail {0}
39
+ steps :
40
+ - name : configure python
41
+ uses : actions/setup-python@v5
42
+ with :
43
+ python-version : ' 3.9'
44
+
45
+ - name : configure git
46
+ uses : cylc/release-actions/configure-git@v1
47
+
48
+ - name : checkout cylc-doc
49
+ uses : actions/checkout@v5
50
+ with :
51
+ path : cylc-doc
52
+
53
+ - name : checkout cylc-doc
54
+ uses : actions/checkout@v5
55
+ with :
56
+ path : cylc-flow
57
+
58
+ - name : debug
59
+ run : |
60
+ tree .
0 commit comments