Skip to content

Commit ab371ba

Browse files
committedMay 23, 2024·
fix aliyun oss action
1 parent b638d99 commit ab371ba

File tree

1 file changed

+12
-25
lines changed

1 file changed

+12
-25
lines changed
 

‎.github/workflows/deploy.yml

+12-25
Original file line numberDiff line numberDiff line change
@@ -25,41 +25,28 @@ jobs:
2525
- name: Build website
2626
run: yarn build
2727

28-
# - name: Upload Build Artifact
29-
# uses: actions/upload-pages-artifact@v3
30-
# with:
31-
# path: build
32-
33-
# deploy:
34-
# name: Deploy to GitHub Pages
35-
# needs: build
36-
37-
# # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38-
# permissions:
39-
# pages: write # to deploy to Pages
40-
# id-token: write # to verify the deployment originates from an appropriate source
41-
42-
# # Deploy to the github-pages environment
43-
# environment:
44-
# name: github-pages
45-
# url: ${{ steps.deployment.outputs.page_url }}
46-
47-
# runs-on: ubuntu-latest
48-
# steps:
49-
# - name: Deploy to GitHub Pages
50-
# id: deployment
51-
# uses: actions/deploy-pages@v4
28+
- name: Upload build artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: build-artifacts
32+
path: build
5233

5334
deploy:
5435
name: Deploy to AliCloud OSS
5536
needs: build
5637
runs-on: ubuntu-latest
5738
steps:
39+
- name: Download build artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: build-artifacts
43+
path: build
44+
5845
- uses: YangHanlin/oss-deployment-action@v1
5946
with:
6047
oss-endpoint: oss-cn-beijing.aliyuncs.com
6148
oss-accesskey-id: ${{ secrets.ALIYUN_OSS_ACCESSKEY_ID }}
6249
oss-accesskey-secret: ${{ secrets.ALIYUN_OSS_ACCESSKEY_SECRET }}
6350
oss-path: oss://tongsuo-doc/
64-
local-path: build
51+
local-path: ./build
6552
delete-first: true

0 commit comments

Comments
 (0)
Please sign in to comment.