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