Skip to content

Improve the contributing guide (#187) #300

Improve the contributing guide (#187)

Improve the contributing guide (#187) #300

Workflow file for this run

name: Demo
on:
push:
branches:
- dev
- main
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/[email protected]
id: yarn-cache
with:
path: |
node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile
env:
ADBLOCK: true
- name: Build Playground
run: yarn build:playground
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: playground/dist
CLEAN: true
SINGLE_COMMIT: true
TARGET_FOLDER: ${{ github.ref_name }}
- name: Print the demo URL
run: echo "✅ The demo has been deployed to https://$(cut -d'/' -f1 <<< $GITHUB_REPOSITORY).github.io/$(cut -d'/' -f2 <<< $GITHUB_REPOSITORY)/"