Skip to content

Update ui-bundle.zip with highlightjs-cairo changes from PR#32. #34

Update ui-bundle.zip with highlightjs-cairo changes from PR#32.

Update ui-bundle.zip with highlightjs-cairo changes from PR#32. #34

Workflow file for this run

name: CI
on:
push:
branches:
- main
- HEAD
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '10.14.2'
- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install --quiet --no-progress
- name: Bundle
run: npx gulp bundle
- name: Prepare artifacts
if: github.ref == 'refs/heads/main'
run: |
mkdir -p public
cp build/ui-bundle.zip public/ui-bundle.zip
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '10.14.2'
- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install --quiet --no-progress
- name: Preview build
run: npx gulp preview:build
- name: Prepare artifacts
run: |
mkdir -p public
cp build/ui-bundle.zip public/ui-bundle.zip
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public