Skip to content

Updating with workflows #42

Updating with workflows

Updating with workflows #42

Workflow file for this run

name: Publish Web Pages
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
pages:
name: Deploy to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm -C web ci
- name: Build Xipher Web
run: npm -C web run build
- name: Download wasm files from latest release
uses: robinraju/release-downloader@v1.10
with:
latest: true
fileName: '*wasm*'
- name: Add WASM files to build directory
run: |
mkdir -p web/build/wasm
unzip xipher_js_wasm.zip -d web/build/wasm/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact from web/build
uses: actions/upload-pages-artifact@v3
with:
path: web/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4