Skip to content

Commit

Permalink
feat: auromatic deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Nov 16, 2024
1 parent bca0e3f commit c6aa809
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
push:
tags:
- "v*"
branches:
- release
workflow_dispatch:
repository_dispatch:
types:
- buildhook

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v4
with:
run_install: true

- name: Build project
run: pnpm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit c6aa809

Please sign in to comment.