Created
November 29, 2019 08:26
-
-
Save SakibFarhad/9bef49107de8e9de9552aa0073c07779 to your computer and use it in GitHub Desktop.
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
# 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