1
0
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:
Stylix58 2021-05-14 15:28:03 +02:00 committed by GitHub
parent e099994eaf
commit d8c244b6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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