Skip to content

Instantly share code, notes, and snippets.

@SakibFarhad
Created November 29, 2019 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SakibFarhad/9bef49107de8e9de9552aa0073c07779 to your computer and use it in GitHub Desktop.
Save SakibFarhad/9bef49107de8e9de9552aa0073c07779 to your computer and use it in GitHub Desktop.
# GitHub Actions docs
# https://help.github.com/en/articles/about-github-actions
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: Web UI Deploy
on: [push]
jobs:
build:
# Machine environment:
# https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Use Node.js 13.2
uses: actions/setup-node@v1
with:
node-version: 13.2
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build -- --prod --aot # --base-href=ml-uiu.github.io
- name: gh-page deploy
uses: crazy-max/ghaction-github-pages@v1
with:
targer_build: gh-pages
build_dir: dist/HelloWorld/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment