Skip to content

id1945/angular-deploy-github-self-host

Repository files navigation

Angular Build && Deploy Nginx

Github action - self-hosted

# 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 

About

How to deploy Angular build files from github-action to self-hosted

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published