Skip to content

Update readme

Update readme #4

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache-dependency-path: "./web-app/package-lock.json"
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: latest
- name: Build wasm module
working-directory: stegano-wasm
run: wasm-pack build --out-dir ../web-app/pkg
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
dir: web-app
- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build
dir: web-app
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './web-app/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1