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
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -1,16 +1,24 @@
|
|||||||
name: Build to GitHub Pages
|
name: Github Pages Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- main
|
workflow_dispatch:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: pip install mkdocs-material mkdocs-section-index
|
- 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