File tree 1 file changed +12
-25
lines changed
1 file changed +12
-25
lines changed Original file line number Diff line number Diff line change @@ -25,41 +25,28 @@ jobs:
25
25
- name : Build website
26
26
run : yarn build
27
27
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
52
33
53
34
deploy :
54
35
name : Deploy to AliCloud OSS
55
36
needs : build
56
37
runs-on : ubuntu-latest
57
38
steps :
39
+ - name : Download build artifacts
40
+ uses : actions/download-artifact@v4
41
+ with :
42
+ name : build-artifacts
43
+ path : build
44
+
58
45
- uses : YangHanlin/oss-deployment-action@v1
59
46
with :
60
47
oss-endpoint : oss-cn-beijing.aliyuncs.com
61
48
oss-accesskey-id : ${{ secrets.ALIYUN_OSS_ACCESSKEY_ID }}
62
49
oss-accesskey-secret : ${{ secrets.ALIYUN_OSS_ACCESSKEY_SECRET }}
63
50
oss-path : oss://tongsuo-doc/
64
- local-path : build
51
+ local-path : ./ build
65
52
delete-first : true
You can’t perform that action at this time.
0 commit comments