-
Notifications
You must be signed in to change notification settings - Fork 65
ci: Github Action workflow define : push vimdoc-ja master & gh-pages #901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
k-takata
merged 8 commits into
vim-jp:master
from
tsuyoshicho:feature/gha-generate-20210414
Apr 25, 2021
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
65f1912
ci: renrew to use GitHub workflow
tsuyoshicho 843ef6f
fix comment
tsuyoshicho 3defa9a
ci: commit message update
tsuyoshicho a9b1c5a
style treat
tsuyoshicho 941bd34
ci: use default vim
tsuyoshicho 9ef9b13
ci: fix word 'vimdoc-ja'
tsuyoshicho 361040f
ci: treat
tsuyoshicho d3414e6
Revert "ci: use default vim"
tsuyoshicho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
name: Generate vim help | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout master | ||
uses: actions/checkout@v2 | ||
with: | ||
path: work | ||
- name: Checkout vimdoc-ja | ||
uses: actions/checkout@v2 | ||
with: | ||
path: target | ||
repository: 'vim-jp/vimdoc-ja' | ||
token: ${{ secrets.VIMDOC_JA_TOKEN }} | ||
- name: Setup Vim | ||
uses: thinca/action-setup-vim@v1 | ||
with: | ||
vim_version: 'v8.2.0020' | ||
vim_type: 'Vim' | ||
- name: Generate new document | ||
run: | | ||
cd work | ||
# Create tags | ||
vim -eu tools/maketags.vim | ||
|
||
cd .. | ||
# install | ||
rsync -rlptD --delete-after work/doc/ target/doc | ||
rsync -rlptD --delete-after work/syntax/ target/syntax | ||
rsync -rlptD --delete-after work/README-dist.md target/README.md | ||
- name: Commit updated master branch | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
cwd: './target' | ||
author_name: '${{ github.actor }}' | ||
author_email: '${{ github.actor }}@users.noreply.github.com' | ||
message: |- | ||
Generated by GitHub workflow ${{ github.run_id }} | ||
|
||
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
branch: master | ||
pull_strategy: 'NO-PULL' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.VIMDOC_JA_TOKEN }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout master | ||
uses: actions/checkout@v2 | ||
with: | ||
path: work | ||
- name: Checkout vimdoc-ja | ||
uses: actions/checkout@v2 | ||
with: | ||
path: target | ||
repository: 'vim-jp/vimdoc-ja' | ||
token: ${{ secrets.VIMDOC_JA_TOKEN }} | ||
ref: gh-pages | ||
- name: Setup Vim | ||
uses: thinca/action-setup-vim@v1 | ||
with: | ||
vim_version: 'v8.2.0020' | ||
vim_type: 'Vim' | ||
- name: Generate new document | ||
run: | | ||
cd work | ||
# Create html documents | ||
make html | ||
|
||
cd .. | ||
# install | ||
cp work/target/html/doc/*.html target | ||
- name: Commit updated master branch | ||
uses: EndBug/add-and-commit@v7 | ||
with: | ||
cwd: './target' | ||
author_name: '${{ github.actor }}' | ||
author_email: '${{ github.actor }}@users.noreply.github.com' | ||
message: |- | ||
Generated by GitHub workflow ${{ github.run_id }} | ||
|
||
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
branch: gh-pages | ||
pull_strategy: 'NO-PULL' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.VIMDOC_JA_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これらの行は syntax-vim-ex にはありませんが、make内でvimを起動できています。
vimdoc-ja-working や vimdoc-en では必要な理由はなんでしょうか?
(できるだけ他(特に個人)への依存は減らしたいです)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
返事は4/23 19:00 +09:00ごろ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あー、syntax-vim-exでのVimを見過していました
たしかにそうですね
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
記載がないからバージョン不明ですが、問題ないなら外しますね
確認するので少々おまちください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認し、削除しました。
またあわせて微修正(記述など)を更新、PRのDescriptionも更新しています。
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref vim-jp/vimdoc-en#17 (comment)
他の変更は維持しつつ、Vimのバージョンについては8.2系を使うように戻しました。
syntax-vim-exはTOHtmlは使わないので、そのままで大丈夫だと思います。(とりあえずは)