-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add actions
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
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,34 @@ | ||
name: Deploy to OSS | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # 替换为你的默认分支 | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Build VitePress | ||
run: | | ||
npm install | ||
npm run docs:build | ||
echo 'element.hackslog.com' > docs/.vitepress/dist/CNAME | ||
mv docs/.vitepress/dist ./ | ||
- name: Upload to OSS | ||
uses: YangHanlin/oss-deployment-action@v1 | ||
with: | ||
oss-endpoint: ${{ ALIYUN_OSS_REGION }}.aliyuncs.com | ||
access-key-id: ${{ secrets.ALIYUN_OSS_ACCESS_KEY_ID }} | ||
access-key-secret: ${{ secrets.ALIYUN_OSS_ACCESS_KEY_SECRET }} | ||
oss-path: oss://${{ ALIYUN_OSS_BUCKET }}/ |
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 |
---|---|---|
|
@@ -5,3 +5,5 @@ | |
``` | ||
npm i @huixiong/x-element --save | ||
``` | ||
|
||
[立即使用:boom:](https://element.hackslog.com/) |
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