ci(gitea): added gitea asction for vite build
Added `.gitea/workflows/vite-build.yml` installing NPM and perform clean build
This commit is contained in:
parent
f30ae25ec2
commit
093a7aad95
|
@ -0,0 +1,19 @@
|
|||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is performing vite build
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Vite-Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install NPM
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: NPM install
|
||||
run: npm ci
|
||||
- name: Vite build
|
||||
run: npm run build
|
Loading…
Reference in New Issue