Added simplify transformer (#74) #219
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |