b634decd1f
Build and Deploy / Build (push) Failing after 3s
see https://gitea.com/actions/gitea-upload-artifact#gitea-upload-artifact
39 lines
926 B
YAML
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 |