name: Build & Deploy on: release: types: [published] jobs: ###################### #### Documentation ### ###################### docs: name: Documentation runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 # Install dependencies - name: Setup node 12 uses: actions/setup-node@v1 with: node-version: '12' # Build Docs - name: Build docs run: | cd docs npm install -g yarn yarn install yarn docs:build # Deploy to gh-pages - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/dist cname: docs.hyperion-project.org