Skip to content

Commit

Permalink
ci: automated publishing to GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
uwla committed Sep 9, 2024
1 parent 2660e51 commit d17325a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GitHub Pages Sync

on:
push:
branches: ["master"]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Build demo
run: npm run build:demo

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: main
publish_dir: ./dist
destination_dir: starred_repos_organizer/

0 comments on commit d17325a

Please sign in to comment.