Skip to content

Commit ba73ee0

Browse files
authored
Merge pull request #15 from tsuyoshicho/feature/gha-generate-20210416
ci: Github Action workflow define : push vimdoc-en gh-pages
2 parents d1e9b1e + 57a9376 commit ba73ee0

File tree

5 files changed

+49
-57
lines changed

5 files changed

+49
-57
lines changed

.github/workflows/generate.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate vim help
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '5 12 * * *'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout master
15+
uses: actions/checkout@v2
16+
with:
17+
path: work
18+
- name: Checkout gh-pages
19+
uses: actions/checkout@v2
20+
with:
21+
path: target
22+
ref: gh-pages
23+
- name: Setup Vim
24+
uses: thinca/action-setup-vim@v1
25+
with:
26+
vim_version: 'v8.2.0020'
27+
vim_type: 'Vim'
28+
- name: Generate new document
29+
run: |
30+
cd work
31+
# Create html documents
32+
make html
33+
34+
cd ..
35+
# install
36+
cp work/target/html/doc/*.html target
37+
- name: Commit updated master branch
38+
uses: EndBug/add-and-commit@v7
39+
with:
40+
cwd: './target'
41+
author_name: '${{ github.actor }}'
42+
author_email: '${{ github.actor }}@users.noreply.github.com'
43+
message: |-
44+
Generated by GitHub workflow ${{ github.run_id }}
45+
46+
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
47+
branch: gh-pages
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.VIMDOC_JP_TOKEN }}

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

tools/[email protected]

-3.17 KB
Binary file not shown.

tools/deploy-gh-pages.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

tools/install_sshkey_github.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)