Skip to content

Merge pull request #1668 from caiocampos/dependabot/npm_and_yarn/esli… #216

Merge pull request #1668 from caiocampos/dependabot/npm_and_yarn/esli…

Merge pull request #1668 from caiocampos/dependabot/npm_and_yarn/esli… #216

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