-
Notifications
You must be signed in to change notification settings - Fork 268
70 lines (60 loc) · 1.76 KB
/
update_kegg_data.yml
File metadata and controls
70 lines (60 loc) · 1.76 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Update KEGG Data
on:
schedule:
# Run at 00:00 on Sunday (UTC)
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update-data:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: devel
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rvest
any::tibble
any::tidyr
any::devtools
YuLab-SMU/yulab.utils
YuLab-SMU/enrichit
YuLab-SMU/enrichplot
YuLab-SMU/GOSemSim
YuLab-SMU/DOSE
local::.
needs: check
- name: Install package
run: |
Rscript -e 'devtools::install()'
- name: Update KEGG Data
run: |
Rscript -e 'source(system.file("extdata/kegg_pathway_category.r", package="clusterProfiler"))'
Rscript -e 'clusterProfiler:::get_kegg_species(save=TRUE)'
# Prepare staging directory
mkdir -p staging
cp data/kegg_category.rda staging/
cp data/kegg_species.rda staging/
# Generate md5.txt (Filename MD5)
cd staging
md5sum *.rda | awk '{print $2, $1}' > md5.txt
cd ..
shell: bash
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./staging
keep_files: true
commit_message: "Deploy KEGG data"