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:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material mkdocs-section-index
|
||||
- run: mkdocs gh-deploy --force
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.x
|
||||
- run: pip install mkdocs-material mkdocs-section-index
|
||||
- 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