Skip to content

Commit

Permalink
[+] try to add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LS-KR committed Nov 13, 2023
1 parent a423784 commit f545840
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Vite Build

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
build:
name: Build main
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install and build
run: |
export NODE_OPTIONS="--max-old-space-size=4096"
yarn install
yarn build
- name: Deploy to GitHub branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist

0 comments on commit f545840

Please sign in to comment.