Skip to content

Commit 3d23a0f

Browse files
GitHub ActionsGitHub Actions
GitHub Actions
authored and
GitHub Actions
committed
Github Actions auto commit: update demo from stdf.
0 parents  commit 3d23a0f

File tree

280 files changed

+21262
-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.

280 files changed

+21262
-0
lines changed

.github/workflows/releases-demo.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# 将静态内容部署到 GitHub Pages 的简易工作流程
2+
name: RELEASES DEMO
3+
4+
on:
5+
# 仅在推送到默认分支时触发工作流
6+
push:
7+
branches:
8+
- main
9+
10+
# 这个选项可以使你手动在 Action tab 页面触发工作流
11+
workflow_dispatch:
12+
13+
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# 允许一个并发的部署
20+
concurrency:
21+
group: 'pages'
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# 单次部署的工作描述
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Set up Node
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20.x
38+
cache: 'npm'
39+
- name: Install dependencies and build
40+
run: |
41+
npm ci
42+
npm run build
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v4
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
# Upload dist folder
49+
path: 'build/'
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 dufu1991
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

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# STDF Demo
2+
3+
## Introduction
4+
5+
This is a demo project for [STDF](https://stdf.design).
6+
7+
It is built with [SvelteKit](https://kit.svelte.dev) + [Tailwind CSS](https://tailwindcss.com) + [STDF](https://stdf.design) .
8+
9+
## Getting Started
10+
11+
Install the dependencies...
12+
13+
```bash
14+
pnpm i
15+
# or
16+
npm i
17+
# or
18+
bun i
19+
```
20+
21+
Start the development server...
22+
23+
```bash
24+
pnpm dev
25+
# or
26+
npm run dev
27+
# or
28+
bun dev
29+
```
30+
31+
If you wish to start the development server with different components or in English language, please refer to the scripts section in `package.json`.

0 commit comments

Comments
 (0)