# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Angular Build && Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run build
- run: cp -r ./dist/angular-deploy-github-self-host/* /usr/share/nginx/html
id1945/angular-deploy-github-self-host
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
How to deploy Angular build files from github-action to self-hosted
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published