Files
owof-announcements/.gitea/workflows/cicd.yaml
T
2026-06-22 08:54:00 +02:00

39 lines
926 B
YAML

name: Build and Deploy
run-name: Build And Deploy (by ${{ gitea.actor }}) 🚀
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Install yarn
shell: bash
run: npm i yarn -g
- name: Yarn install (dev)
shell: bash
run: yarn install
- name: Vite build
shell: bash
run: ./node_modules/.bin/vite build
- name: Yarn install (prod)
shell: bash
run: rm -rf node_modules && yarn install --production=true
- name: Publish artifacts
uses: actions/gitea-upload-artifact@v4
with:
path: |
dist
index.html
node_modules
package.json
public
src
tsconfig.json
vite.config.json
yarn.lock