first commit
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 12s
Build Vue3 App / build (push) Has been cancelled

This commit is contained in:
编码猿
2025-10-04 21:16:45 +08:00
commit ce444b098e
33 changed files with 3986 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# .gitea/workflows/build.yml
# 1. 工作流名称
name: Build Vue3 App
# 2. 触发条件 (on)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# 3. 作业定义 (jobs)
jobs:
build:
# 4. 运行器选择 (runs-on)
runs-on: node:18
# 5. 步骤序列 (steps)
steps:
# 步骤 1: 检出代码
- name: Checkout code
uses: actions/checkout@v4
# 步骤 2: 设置 Node.js 环境
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
# 步骤 3: 安装依赖
- name: Install dependencies
run: npm ci
# 步骤 4: 执行打包命令
- name: Build
run: npm run build
# 步骤 5: 上传打包产物
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

View File

19
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,19 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."