Compare commits

...

8 Commits

Author SHA1 Message Date
d3622dd422 ci: install zip before creating release archive
All checks were successful
Build & Release / build (push) Successful in 2m19s
2026-04-14 20:54:39 +08:00
7c7db7a04e ci: use single job for build and release
Some checks failed
Build & Release / build (push) Failing after 1m5s
- Gitea doesn't support upload-artifact/download-artifact
- zip and release within the same job
2026-04-14 20:50:44 +08:00
72dd6758c6 ci: release on every push to main branch
Some checks failed
Build & Release / build (push) Failing after 1m1s
Build & Release / release (push) Has been skipped
- remove tag-only condition for release job
- publish zip to "latest" tag on every main push
2026-04-14 20:46:31 +08:00
15e2f2927b fix: resolve lint errors and unused imports
All checks were successful
Build & Release / build (push) Successful in 1m4s
Build & Release / release (push) Has been skipped
2026-04-14 20:43:05 +08:00
32e1c743da fix: regenerate package-lock.json to sync with package.json
Some checks failed
Build & Release / build (push) Failing after 41s
Build & Release / release (push) Has been skipped
2026-04-14 20:39:59 +08:00
5634aae631 revert b3feb4284c
Some checks failed
Build & Release / build (push) Failing after 2m4s
Build & Release / release (push) Has been skipped
revert 更新 .gitea/workflows/ci.yml
2026-04-14 20:35:28 +08:00
b3feb4284c 更新 .gitea/workflows/ci.yml
Some checks failed
Build & Release / build (push) Has been cancelled
Build & Release / release (push) Has been cancelled
2026-04-14 20:21:00 +08:00
1c3cab6cd7 ci: add Gitea Actions workflow for build, test, and release
Some checks failed
Build & Release / build (push) Has been cancelled
Build & Release / release (push) Has been cancelled
- lint, typecheck, build on every push/PR
- create release with static export zip on version tags
2026-04-14 20:09:14 +08:00
6 changed files with 435 additions and 481 deletions

53
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,53 @@
name: Build & Release
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Build
run: npm run build
- name: Install zip
if: github.ref == 'refs/heads/main'
run: apt-get update && apt-get install -y zip
- name: Create release zip
if: github.ref == 'refs/heads/main'
run: zip -r resume-latest.zip out/
- name: Create Release
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Latest Build
body: Auto-generated from latest commit on main branch
files: resume-latest.zip
fail_on_unmatched_files: true

View File

@@ -1,4 +1,4 @@
import { Geist, Geist_Mono, Inter } from "next/font/google"
import { Geist_Mono, Inter } from "next/font/google"
import "./globals.css"
import { ThemeProvider } from "@/components/theme-provider"

View File

@@ -8,7 +8,7 @@ import {
} from "@hugeicons/core-free-icons"
import { HugeiconsIcon } from "@hugeicons/react"
import { AnimatedList, AnimatedListItem } from "@/components/ui/animated-list"
import { AnimatedListItem } from "@/components/ui/animated-list"
import { SectionWrapper } from "@/components/section-wrapper"
interface ExperienceItem {

View File

@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/set-state-in-effect */
"use client"
import React, { useEffect, useRef, useState } from "react"

View File

@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/set-state-in-effect */
"use client"
import React, { useEffect, useState } from "react"

857
package-lock.json generated

File diff suppressed because it is too large Load Diff