mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-25 17:56:36 +08:00
937acfa0d7
Add a new Github Action to publish to the GitHub page. Use twtug/lkmpg image for reproducibility. Ref: - sysprog21#27 - https://github.com/TeXtw/docker-lkmpg
25 lines
477 B
YAML
25 lines
477 B
YAML
name: build-deploy-github-page
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: twtug/lkmpg
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Build
|
|
run: |
|
|
make html
|
|
- name: Deploy to gh-pages branch
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./html
|
|
publish_branch: gh-pages
|