Skip to content

Commit db1d921

Browse files
committed
初始化仓库
0 parents  commit db1d921

File tree

245 files changed

+55084
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+55084
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js linguist-language=astro

.github/release-drafter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name-template: "v$RESOLVED_VERSION"
3+
tag-template: "v$RESOLVED_VERSION"
4+
template: |
5+
# Changelog
6+
7+
$CHANGES
8+
9+
See details of [all code changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release.
10+
categories:
11+
- title: "🚀 Features"
12+
labels:
13+
- "feature"
14+
- "enhancement"
15+
- title: "🐛 Bug Fixes"
16+
labels:
17+
- "fix"
18+
- "bugfix"
19+
- "bug"
20+
- title: "🧰 Maintenance"
21+
labels:
22+
- "infrastructure"
23+
- "automation"
24+
- "documentation"
25+
- title: "🏎 Performance"
26+
label: "performance"
27+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
28+
version-resolver:
29+
major:
30+
labels:
31+
- "type: breaking"
32+
minor:
33+
labels:
34+
- "type: enhancement"
35+
patch:
36+
labels:
37+
- "type: bug"
38+
- "type: maintenance"
39+
- "type: documentation"
40+
default: patch

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# 每次推送到 `main` 分支时触发这个“工作流程”
5+
# 如果你使用了别的分支名,请按需将 `main` 替换成你的分支名
6+
push:
7+
branches: [ main ]
8+
# 允许你在 GitHub 上的 Actions 标签中手动触发此“工作流程”
9+
workflow_dispatch:
10+
11+
# 允许 job 克隆 repo 并创建一个 page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v5
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v5
25+
# with:
26+
# path: . # 存储库中 Astro 项目的根位置。(可选)
27+
# node-version: 20 # 用于构建站点的特定 Node.js 版本,默认为 20。(可选)
28+
# package-manager: pnpm@latest # 应使用哪个 Node.js 包管理器来安装依赖项和构建站点。会根据存储库中的 lockfile 自动检测。(可选)
29+
# build-cmd: pnpm run build # 用于构建你的网站的命令。默认运行软件包的构建脚本或任务。(可选)
30+
# env:
31+
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # 对变量值使用单引号。(可选)
32+
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Draft release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
draft-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
12+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [released, edited]
5+
workflow_dispatch:
6+
inputs:
7+
TAG_NAME:
8+
description: "Tag name that the major tag will point to"
9+
required: true
10+
11+
env:
12+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
update_tag:
19+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
20+
runs-on: ubuntu-latest
21+
environment:
22+
# Note: this environment is protected
23+
name: Release
24+
steps:
25+
- name: Update the ${{ env.TAG_NAME }} tag
26+
id: update-major-tag
27+
uses: actions/publish-action@23f4c6f12633a2da8f44938b71fde9afec138fb4 # v0.4.0
28+
with:
29+
source-tag: ${{ env.TAG_NAME }}
30+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# editor config
2+
**/.vscode/
3+
4+
# dependencies
5+
node_modules/
6+
7+
# generated types
8+
.astro/
9+
.vercel/
10+
11+
# build output
12+
dist/
13+
14+
# logs
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
pnpm-debug.log*
19+
20+
# private config
21+
.env

.nojekyll

Whitespace-only changes.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
manage-package-manager-versions = true

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Spr_Aachen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Applesaber Blog
2+
欢迎来到我的网站 applesaber.site

0 commit comments

Comments
 (0)