Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit be0e73e

Browse files
committed
ci: deploy
1 parent eff4705 commit be0e73e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
66

7-
name: Upload Release Asset
7+
name: Release And Deploy
88

99
jobs:
1010
build:
@@ -40,3 +40,8 @@ jobs:
4040
asset_path: ./release.zip
4141
asset_name: release.zip
4242
asset_content_type: application/zip
43+
- name: Deploy
44+
uses: peaceiris/actions-gh-pages@v3
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./dist

release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
yarn
1+
yarn
22
yarn build
3-
zip -r release.zip dist/*
3+
zip -r release.zip dist/*
4+
echo 'i-backend.top' >dist/CNAME

0 commit comments

Comments
 (0)