Skip to content
box

GitHub Action

WASM Github Pages Generate

v0.0.2 Latest version

WASM Github Pages Generate

box

WASM Github Pages Generate

Use AcBlog WASM Client to generate github pages

Installation

Copy and paste the following snippet into your .yml file.

              

- name: WASM Github Pages Generate

uses: acblog/[email protected]

Learn more about this action in acblog/wasm-ghpages-generate-action

Choose a version

WASM Github Pages Generate

Use AcBlog WASM Client to generate github pages.

Getting Started

Workflow

name: Deploy
on:
  push:
jobs:
  update:
    runs-on: ubuntu-latest
    continue-on-error: false
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          persist-credentials: false
      - name: Generate Frontend
        uses: acblog/wasm-ghpages-generate-action@master
      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          ACCESS_TOKEN: ${{ secrets.PUSH_TOKEN }}
          BRANCH: master
          FOLDER: dist
          CLEAN: true

Options

  1. domain: Folder path in domain, ends with '/', default to '/'.
  2. segmentCount: Segment count in domain, default to '0'. If your pages under sub-path (eg. example.com/sub/), set segmentCount to 1.
  3. app: App directory with settings files, not endswith '/', default to './app'.
  4. dist: Dist directory, not endswith '/', default to './dist'.