Skip to content

Merge pull request #1953 from caiocampos/dependabot/npm_and_yarn/zone… #418

Merge pull request #1953 from caiocampos/dependabot/npm_and_yarn/zone…

Merge pull request #1953 from caiocampos/dependabot/npm_and_yarn/zone… #418

Workflow file for this run

name: Deploy
on:
push:
branches: [ ng-app ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm install --legacy-peer-deps
- name: Build
env:
REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }}
run: npx ng build --configuration production --base-href /
- name: Adjustment
run: |
cd dist/github-home-app
cp index.html 404.html
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: master
folder: dist/github-home-app