Skip to content

Commit

Permalink
Try publishing gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Apr 17, 2024
1 parent 20d3db5 commit 4f2954c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build and deploy to GitHub Pages
run: |
npm install
npm run build
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git checkout gh-pages
cp -R dist/examples/* .
git add .
git commit -m "Deploy to GitHub Pages"
git push origin gh-pages

0 comments on commit 4f2954c

Please sign in to comment.