Skip to content

Commit

Permalink
test: 工作流部署
Browse files Browse the repository at this point in the history
  • Loading branch information
WindWaving committed Mar 21, 2024
1 parent 9713700 commit c793d76
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches: ["gh-pages"]


# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down Expand Up @@ -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

0 comments on commit c793d76

Please sign in to comment.