Skip to content

Commit

Permalink
docs: add example report
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Oct 31, 2024
1 parent dc5c912 commit 3b3bd66
Show file tree
Hide file tree
Showing 9 changed files with 741 additions and 654 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license",
"pnpm-lock.yaml",
"preview/elements/avatar.svelte",
"preview/mock/api.mock.ts",
"preview/mock/data.ts",
"tsconfig.json"
],
"words": [
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docs

on:
push:
branches:
- 'main'

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Tools
uses: ./.github/actions/install-tools

- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Build Docs
run: pnpm run build:docs

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: './dist'
production-branch: main
deploy-message: 'deploy from github actions'
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"build": "pnpm run /^build:/",
"build:lib": "cargo build --release && node ./scripts/build.js",
"build:preview": "vite build",
"build:docs": "DOCS=true vite build",
"release": "pnpm release:check && pnpm release:version",
"release:check": "pnpm test && pnpm run build",
"release:version": "changelogen --output changelog.md --release --push",
Expand Down
1 change: 0 additions & 1 deletion preview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<link href="./favicon.ico" sizes="any" rel="icon" />
<link type="image/svg+xml" href="./icon.svg" rel="icon" />
<link href="./apple-touch-icon.png" rel="apple-touch-icon" />

<style>
@import './styles/base.css';
@import './styles/colors.css';
Expand Down
Loading

0 comments on commit 3b3bd66

Please sign in to comment.