File tree 2 files changed +29
-15
lines changed
2 files changed +29
-15
lines changed Original file line number Diff line number Diff line change
1
+ # Set update schedule for GitHub Actions
2
+
3
+ version : 2
4
+ updates :
5
+
6
+ - package-ecosystem : " github-actions"
7
+ directory : " /"
8
+ schedule :
9
+ # Check for updates to GitHub Actions on Tuesdays
10
+ interval : " weekly"
11
+ day : " tuesday"
12
+ # Allow up to 2 open pull requests at a time
13
+ open-pull-requests-limit : 2
Original file line number Diff line number Diff line change 4
4
name : Docs
5
5
6
6
on :
7
- # pull_request:
7
+ pull_request :
8
+ paths :
9
+ - ' docs/**'
10
+ - ' .github/workflows/**'
8
11
push :
9
12
branches :
10
13
- main
14
17
15
18
jobs :
16
19
build :
17
- runs-on : ubuntu-20.04
20
+ runs-on : ubuntu-latest
18
21
defaults :
19
22
run :
20
23
shell : bash -l {0}
21
24
22
25
steps :
23
- # Checks-out your repository under $GITHUB_WORKSPACE
24
26
- name : Checkout
25
- uses : actions/checkout@v2.4.0
27
+ uses : actions/checkout@v4.1.6
26
28
27
- # Setup Miniconda
28
- - name : Setup Miniconda
29
- uses :
conda-incubator/[email protected]
29
+ - name : Get current week number of year
30
+ id : date
31
+ run : echo "date=$(date +%Y-W%W)" >> $GITHUB_OUTPUT # e.g., 2024-W19
32
+
33
+ - name : Setup Micromamba
34
+
30
35
with :
31
- activate-environment : gmt-examples
32
36
environment-file : environment.yml
33
- python-version : 3.9
34
- channels : conda-forge
35
- miniconda-version : " latest"
36
-
37
- # Show installed pkg information for postmortem diagnostic
38
- - name : List installed packages
39
- run : conda list
37
+ cache-downloads : false
38
+ cache-environment : true
39
+ # environment cache is persistent for one week.
40
+ cache-environment-key : micromamba-environment-${{ steps.date.outputs.date }}
40
41
41
42
- name : Build the website
42
43
run : make -C docs clean html
You can’t perform that action at this time.
0 commit comments