-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9713700
commit c793d76
Showing
1 changed file
with
14 additions
and
15 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 |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
push: | ||
branches: ["gh-pages"] | ||
|
||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
|
@@ -34,18 +33,18 @@ jobs: | |
- name: Build Website | ||
run: npm run build | ||
# https://github.com/yizhoumo/setup-ossutil | ||
- uses: manyuanrong/[email protected] | ||
with: | ||
endpoint: "oss-cn-hangzhou.aliyuncs.com" | ||
access-key-id: ${{secrets.ACCESS_KEY_ID}} | ||
access-key-secret: ${{secrets.ACCESS_KEY_SECRET}} | ||
- run: ossutil cp -rf dist oss://higress-website-cn-hangzhou/ | ||
# 部署到 github Page | ||
# - name: Upload artifact | ||
# uses: actions/upload-pages-artifact@v2 | ||
# - uses: manyuanrong/[email protected] | ||
# with: | ||
# # Upload entire repository | ||
# path: './dist' | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v2 | ||
# endpoint: "oss-cn-hangzhou.aliyuncs.com" | ||
# access-key-id: ${{secrets.ACCESS_KEY_ID}} | ||
# access-key-secret: ${{secrets.ACCESS_KEY_SECRET}} | ||
# - run: ossutil cp -rf dist oss://higress-website-cn-hangzhou/ | ||
# 部署到 github Page | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: "./dist" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |