-
Notifications
You must be signed in to change notification settings - Fork 6
ci: Github Action workflow define : push vimdoc-en gh-pages #15
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: Generate vim help | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '5 12 * * *' | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout master | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| path: work | ||
| - name: Checkout gh-pages | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| path: target | ||
| 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 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.VIMDOC_JP_TOKEN }} | ||
|
Comment on lines
+48
to
+49
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. この行、もしかして不要ですか?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ですね、すみません。 |
||
This file was deleted.
This file was deleted.
This file was deleted.
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.
workflow_dispatchは必要ないですよね?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.
手動生成できるので、動作確認にいいかなと思いましたが、削除しますか?
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.
どういう使い方を想定されていますか?
最新のを実行し直すだけなら、最新のscheduled buildをre-runしても良さそうですが。
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.
そうですね...
re-runとしてではなく、新規にrunしたほうがいい場合があるかなと思ったというのはありますが、差がないですね。
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.
まー、re-runだと前のログが消えてしまうという問題はありますが…
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.
あー、いまさら & このリポジトリだと意味がないのですが、思いだしました。
GitHub workflowのcronは、リポジトリ更新がないと60日で止るのですが
再開時に即座に更新を手動でしたいならあったほうがいいかな、的に考えてました。
まあ、不要なのは変りませんね(Vimの状況からすると)