Skip to content

Embed selected rule in the url when sharing. #99

Embed selected rule in the url when sharing.

Embed selected rule in the url when sharing. #99

Workflow file for this run

name: publish
on: [push, pull_request]
# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
checks:
if: github.event_name != 'push' || github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Install packages
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Check format
run: pnpm run format:check
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: latest
- name: Setup wasm-pack
uses: jetli/[email protected]
with:
version: latest
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Build
run: task
gh-release:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: latest
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Install packages
run: pnpm install
- name: Lint
run: pnpm run lint
- name: Check format
run: pnpm run format:check
- name: Setup wasm-pack
uses: jetli/[email protected]
with:
version: latest
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Build
run: task
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1