mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-24 15:50:19 +01:00
Add GitHub workflow to publish to Pages
It seems we can only enable GitHub Pages with subdirectories at the root of the project. Ours is in ./site/docs so I think we need to use an example like Hexo's to publish with a GitHub workflow. See: https://hexo.io/docs/github-pages
This commit is contained in:
parent
fdf1c8ebcb
commit
992fda8f85
18
.github/workflows/pages.yml
vendored
Normal file
18
.github/workflows/pages.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
pages:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./site/docs
|
||||
publish_branch: main
|
Loading…
Reference in New Issue
Block a user