-
Notifications
You must be signed in to change notification settings - Fork 40
63 lines (51 loc) · 1.98 KB
/
create_readme.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
51
52
53
54
55
56
57
58
59
60
61
62
# name of workflow that will be displayed on the actions page
name: Create README.md
# execute workflow only when these files are modified
on:
push:
paths:
- 'eg/**'
- 'create_readme.sh'
- 'readme.Rmd'
- '.github/workflows/create_readme.yml'
- 'script/tools_for_readme.sh'
# a list of the jobs that run as part of the workflow
jobs:
make_markdown:
runs-on: ubuntu-latest
# the type of runner to run the given job
container: davetang/r_build:4.1.2
# a list of the steps that will run as part of the job
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: Global installs
run: |
apt update && apt install -y pandoc man-db
yes | unminimize
- name: Install tools for README
run: script/tools_for_readme.sh
- name: Build README
run: ./create_readme.sh
- name: Commit report
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git config --global --add safe.directory /__w/learning_vcf_file/learning_vcf_file
git add "README.md"
git commit -m "Build README.md"
git push origin main
- name: Build MkDocs site
run: |
cd mkdocs && mkdocs build
- name: Deploy MkDocs
run: |
git branch gh-pages
git pull
cd mkdocs && mkdocs gh-deploy
- run: echo "This job's status is ${{ job.status }}."