Merge pull request #1952 from caiocampos/dependabot/npm_and_yarn/zone… #417
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
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 |