From d8c244b6dae8c761896ccd9f18da82055426b8eb Mon Sep 17 00:00:00 2001 From: Stylix58 <63605602+Stylix58@users.noreply.github.com> Date: Fri, 14 May 2021 15:28:03 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a09ba0..f010d59 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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