Skip to content

0.12.1

0.12.1 #228

Workflow file for this run

name: Deploy docs
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install and Build
run: |
npm ci
npm run build
npm run build:docs
- name: Deploy dev
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: docs/dev # the folder in gh-pages that will be created/cleaned
clean: true # Automatically remove deleted files from the deploy branch
- name: Find current tag
run: echo "tag=$(git tag --points-at HEAD)" >> $GITHUB_ENV
- name: Deploy tag
if: ${{ startsWith(env.tag, 'v') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: docs/${{ env.tag }} # the folder in gh-pages that will be created/cleaned
clean: true # Automatically remove deleted files from the deploy branch
- name: Deploy latest
if: ${{ startsWith(env.tag, 'v') }}
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
target-folder: docs/latest # the folder in gh-pages that will be created/cleaned
clean: true # Automatically remove deleted files from the deploy branch