mirror of
https://github.com/LCE-Hub/piston.git
synced 2026-07-15 21:32:26 +00:00
init
This commit is contained in:
28
.github/workflows/pages.yml
vendored
Normal file
28
.github/workflows/pages.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install and Build
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: dist
|
||||
branch: gh-pages
|
||||
Reference in New Issue
Block a user