1
0
mirror of https://github.com/stisla/stisla.git synced 2025-08-30 11:30:07 +02:00

ci: add auto-deploy to gh-pages on push

This commit is contained in:
zuramai
2022-06-13 07:26:01 +07:00
parent 0c2ac1aa16
commit ed2f0d93cb

28
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: deploy demo to gh-pages
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install and Build 🔧
run: |
npm install
npm run dist
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./pages # The folder the action should deploy.
commit-message: "update: stisla demo"