👷 Adds action to build docs site

This commit is contained in:
Alicia Sykes 2021-08-30 19:05:16 +01:00
parent 0c0a5828fe
commit 8593fbfc3c
3 changed files with 15 additions and 39 deletions

View File

@ -1,24 +0,0 @@
# This action builds and deploys the master branch
name: Deploy demo of current version
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: dev-demo
folder: dist

15
.github/workflows/build-docs-site.yml vendored Normal file
View File

@ -0,0 +1,15 @@
# Builds and published Dashy's documentation website
name: Build Docs Site
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/WEBSITE/docs-site-source'
steps:
- uses: actions/checkout@master
- uses: redkubes/docusaurus-deploy-action@master
with:
source-folder: /
git-user: ${{ github.actor }}
git-password: ${{ secrets.GITHUB_TOKEN }}
deployment-branch: gh-pages

View File

@ -1,15 +0,0 @@
name: Contributors
on:
schedule:
- cron: '0 1 * * 0' # At 01:00 on Sunday.
push:
branches:
- master
jobs:
contributors:
runs-on: ubuntu-latest
steps:
- uses: bubkoo/contributors-list@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
svgPath: docs/assets/CONTRIBUTORS.svg