Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Merge pull request #1808 from caiocampos/dependabot/npm_and_yarn/angu… #251

Merge pull request #1808 from caiocampos/dependabot/npm_and_yarn/angu…

Merge pull request #1808 from caiocampos/dependabot/npm_and_yarn/angu… #251

Workflow file for this run

name: Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- 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 lib
run: npm run build-wasm
- name: Build
run: npx ng build --configuration production --base-href /primes/
- name: Adjustment
run: |
cd dist/primes
cp index.html 404.html
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: dist/primes