Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【更新】v0.13.6 #106

Merged
merged 19 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build Production Page
on:
push:
# 由于其它分支为本地测试打包,故只 CI 主线变更
branches: [ wu_main ]
paths-ignore:
- '**.md'
- '**.txt'
- '.github/**'
- '!.github/workflows/**'
jobs:
setup:
name: Setup Project Info
runs-on: ubuntu-latest
outputs:
DIST_SUFFIX: ${{ steps.get-suffix.outputs.DIST_SUFFIX }}
steps:
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: 📙 Get Package Suffix
id: get-suffix
run: |
# 此处通过 jq 从 package.json 获取版本,否则在 depth
# 为 1 时通过 git tag 所读取的版本不准确
sudo apt-get install jq
VERSION=$(jq -r '.version' ./package.json)

COMMIT_COUNT=$(git rev-list --count HEAD)
BUILD_DATE=$(date "+%y%m%d")
HEAD_SHA=$(git rev-parse --short HEAD)
echo "DIST_SUFFIX=v${VERSION}-${COMMIT_COUNT}-${BUILD_DATE}-${HEAD_SHA}" >> $GITHUB_OUTPUT

build:
name: Build Production Page
needs: setup
env:
DIST_NAME: dist-${{ needs.setup.outputs.DIST_SUFFIX }}
runs-on: ubuntu-latest
steps:
- name: 🧐 Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: '1'

- name: 🛠️ Setup environment
id: setup
uses: pnpm/action-setup@v3
with:
version: 8

- name: ⚙️ Build production pages
id: build
run: |
pnpm install
pnpm add @vue/cli
pnpm build

- name: 🌐 Upload the build
id: upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.DIST_NAME }}
path: dist
retention-days: 60
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.1.0.cjs

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Windows Up-to-Date

![开源协议](https://img.shields.io/github/license/crrashh1542/win-uptime)
![当前版本](https://img.shields.io/github/package-json/v/crrashh1542/win-uptime)
![Release 版本](https://img.shields.io/github/v/release/crrashh1542/win-uptime?include_prereleases)
![开源协议](https://img.shields.io/github/license/crrashh1542/win-up-to-date)
![当前版本](https://img.shields.io/github/package-json/v/crrashh1542/win-up-to-date)
![上次提交](https://badgen.net/github/last-commit/crrashh1542/win-up-to-date)
![框架](https://img.shields.io/badge/framework-Vue%203-3fb984)

## 关于
如你所见,这是一个用于反映 Windows 系统各版本情况实时进展的项目。

这是受到 [ChangeWindows](https://changewindows.org) 项目启发而制作的一个便民项目,也算作我的一个 [Vue 3](https://github.com/vuejs/core) + [Vue Router 4](https://github.com/vuejs/router) + [Fluent UI Web Component 2](https://github.com/microsoft/fluentui/tree/master/packages/web-components) 的一个练手项目 ~~(为自己代码质量低找借口)~~。由于目前在测试阶段,所以可能会出现较多的 bug,敬请谅解 :(

当然啦,咱也灰常欢迎大佬们的 [issue](https://github.com/crrashh1542/win-up-to-date/issues) 和 [PR](https://github.com/crrashh1542/win-up-to-date/pulls) 啦~
当然,咱也灰常欢迎大佬们的 [issue](https://github.com/crrashh1542/win-up-to-date/issues) 和 [PR](https://github.com/crrashh1542/win-up-to-date/pulls) 啦~

## 部署
若要下载已打包好的源代码,请移步 [Releases](https://github.com/crrashh1542/win-up-to-date/releases)。
若要下载已打包好的代码,请移步 [Releases](https://github.com/crrashh1542/win-up-to-date/releases)。

若要自行打包,需要注意以下几点:
* 必须要将项目 clone 下来,使用 zip 源代码下载方式会导致 prebuild 环节出错。
Expand All @@ -27,7 +27,7 @@ yarn set version berry
`wu` 开头的分支为开发分支,如
[`wu_main`](https://github.com/crrashh1542/win-up-to-date/tree/wu_main) 就是本项目的主线分支。

以代号开头的分支为某特定代号下版本的版本发布分支,以下列表内加粗行表示为当前工作进行的分支。
以代号开头的分支为某版本阶段的发布分支(即所有 Releases 都经由此分支,以下列表内加粗行表示为当前工作进行的分支。
| 代号简写 | 代号 | 范围 |
|----------|---------------|---------------|
| **`th`** | **Threshold** | **v0 ~ v1.0** |
39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
{
"name": "win-up-to-date",
"version": "0.13.5",
"version": "0.13.6",
"description": "A website project showing the latest status of Windows Insider versions.",
"main": "index.js",
"repository": "https://github.com/crrashh1542/win-up-to-date",
"author": "crrashh1542 <[email protected]>",
"homepage": "https://wutd.crrashh.com",
"repository": {
"type": "git",
"url": "git+https://github.com/crrashh1542/win-up-to-date"
},
"license": "GPL-3.0",
"private": true,
"bugs": {
"url": "https://github.com/crrashh1542/win-up-to-date/issues"
},
"main": "./index.js",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@fluentui/web-components": "^2.5.16",
"axios": "^1.6.7",
"core-js": "^3.35.1",
"js-cookie": "^3.0.5",
"moment": "^2.30.1",
"normalize.css": "^8.0.1",
"vue": "^3.4.18",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@fluentui/web-components": "^2.5.16",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"autoprefixer": "^10.4.17",
"axios": "^1.6.7",
"compression-webpack-plugin": "^11.0.0",
"core-js": "^3.36.0",
"eslint": "^8.56.0",
"eslint-plugin-vue": "^9.21.1",
"js-cookie": "^3.0.5",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"moment": "^2.30.1",
"normalize.css": "^8.0.1",
"postcss": "^8.4.35",
"speed-measure-webpack-plugin": "^1.5.0",
"tailwindcss": "^3.4.1",
"vue-clipboard3": "^2.0.0"
"vue": "^3.4.19",
"vue-clipboard3": "^2.0.0",
"vue-router": "^4.2.5"
},
"eslintConfig": {
"root": true,
Expand All @@ -61,5 +66,5 @@
"not dead",
"not ie 11"
],
"packageManager": "[email protected]"
"packageManager": "[email protected]"
}
Loading