Skip to content

Commit

Permalink
🐎 ci: deploy via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
easterNday committed Aug 4, 2024
1 parent 1dcae3c commit fc114aa
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
environment:
name: github-pages
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@main
with:
fetch-depth: 0

- name: Setup pnpm ⚑️
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies ⚑️
run: pnpm install --frozen-lockfile

- name: Build πŸ› οΈ
run: pnpm docs:build

- name: Deploy πŸš€
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist
user_name: "github-actions[bot]"
user_email: "41898282+github-actions[bot]@users.noreply.github.com"
commit_message: "🐎 ci: Deploy"
force_orphan: true

0 comments on commit fc114aa

Please sign in to comment.