Skip to content

Commit

Permalink
Create publish-website.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dellisd authored Jul 21, 2020
1 parent 8560d7a commit ae6f508
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a basic workflow to help you get started with Actions

name: Publish Website

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
tags:
- "*"

jobs:
publish-website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Build Dokka docs
run: ./gradlew dokka --no-daemon --no-parallel

- name: Build mkdocs
run: |
pip3 install mkdocs-material
mkdocs build
- name: Deploy 🚀
if: success()
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: site
SINGLE_COMMIT: true

0 comments on commit ae6f508

Please sign in to comment.