-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github Actions auto commit: update demo from stdf.
- Loading branch information
GitHub Actions
authored and
GitHub Actions
committed
Aug 8, 2024
0 parents
commit de5236b
Showing
280 changed files
with
21,258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 将静态内容部署到 GitHub Pages 的简易工作流程 | ||
name: RELEASES DEMO | ||
|
||
on: | ||
# 仅在推送到默认分支时触发工作流 | ||
push: | ||
branches: | ||
- main | ||
|
||
# 这个选项可以使你手动在 Action tab 页面触发工作流 | ||
workflow_dispatch: | ||
|
||
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。 | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# 允许一个并发的部署 | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# 单次部署的工作描述 | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'npm' | ||
- name: Install dependencies and build | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload dist folder | ||
path: '/demo-stdf/build/' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 dufu1991 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# STDF Demo | ||
|
||
## Introduction | ||
|
||
This is a demo project for [STDF](https://stdf.design). | ||
|
||
It is built with [SvelteKit](https://kit.svelte.dev) + [Tailwind CSS](https://tailwindcss.com) + [STDF](https://stdf.design) . | ||
|
||
## Getting Started | ||
|
||
Install the dependencies... | ||
|
||
```bash | ||
pnpm i | ||
# or | ||
npm i | ||
# or | ||
bun i | ||
``` | ||
|
||
Start the development server... | ||
|
||
```bash | ||
pnpm dev | ||
# or | ||
npm run dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
If you wish to start the development server with different components or in English language, please refer to the scripts section in `package.json`. |
Oops, something went wrong.