Skip to content

Commit

Permalink
ci: release-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Mar 28, 2024
1 parent cc05313 commit d10a04d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
50 changes: 50 additions & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: release-docs

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v3

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- uses: actions/configure-pages@v4

- run: pnpm install
- run: pnpm docs:build

- uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion components/TheHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const isDark = computed({
:ui="{ item: { disabled: 'cursor-text select-text' } }"
:popper="{ placement: 'bottom-start' }"
>
<UAvatar size="md" :src="state.avatar" :alt="state.name" />
<UAvatar :src="state.avatar" :alt="state.name" />

<template #account>
<span class="truncate font-medium text-gray-900 dark:text-white">
Expand Down
3 changes: 3 additions & 0 deletions pages/setup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const onSubmit = async (event: FormSubmitEvent<Schema>) => {
class="w-full"
type="url"
icon="i-heroicons-cloud"
placeholder="http://127.0.0.1:2023/graphql"
/>
</UFormGroup>

Expand All @@ -56,6 +57,7 @@ const onSubmit = async (event: FormSubmitEvent<Schema>) => {
class="w-full"
type="text"
icon="i-heroicons-user"
placeholder="daeuniverse"
/>
</UFormGroup>

Expand All @@ -66,6 +68,7 @@ const onSubmit = async (event: FormSubmitEvent<Schema>) => {
class="w-full"
type="password"
icon="i-heroicons-lock-closed"
placeholder="dae-web"
/>
</UFormGroup>

Expand Down

0 comments on commit d10a04d

Please sign in to comment.