mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-08 19:32:30 +01:00
Update build.yml
This commit is contained in:
parent
e099994eaf
commit
d8c244b6da
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -1,11 +1,15 @@
|
||||
name: Build to GitHub Pages
|
||||
name: Github Pages Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@ -13,4 +17,8 @@ jobs:
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material mkdocs-section-index
|
||||
- run: mkdocs gh-deploy --force
|
||||
- uses: sterlingwes/gh-pages-deploy-action@v1.1
|
||||
with:
|
||||
access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
source-directory: site
|
||||
build-command: mkdocs build
|
||||
|
Loading…
Reference in New Issue
Block a user