Skip to content

Commit

Permalink
Create Vite Build Action
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciusschroeder authored Oct 14, 2024
1 parent 33871ff commit ed68b34
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/vite-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Vite Build

on:
- push
- pull_request

jobs:
build:
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: Install dependencies
run: npm ci

- name: Build project using Vite
run: npm run build

- name: Upload dist folder
uses: actions/upload-artifact@v4
with:
name: dist-folder
path: dist

0 comments on commit ed68b34

Please sign in to comment.