|
1 | | -# # This file should modified carefully. |
2 | | - |
3 | | -# name: CI |
4 | | - |
5 | | -# # Controls when the action will run. Triggers the workflow on push or pull request |
6 | | -# # events but only for the master branch |
7 | | -# on: |
8 | | -# push: |
9 | | -# branches: [cn] |
10 | | - |
11 | | -# # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
12 | | -# jobs: |
13 | | -# # This workflow contains a single job called "build" |
14 | | -# build: |
15 | | -# # The type of runner that the job will run on |
16 | | -# runs-on: ubuntu-latest |
17 | | - |
18 | | -# # Steps represent a sequence of tasks that will be executed as part of the job |
19 | | -# steps: |
20 | | -# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
21 | | -# - uses: actions/checkout@v2 |
22 | | - |
23 | | -# - name: Install |
24 | | -# run: | |
25 | | -# yarn |
26 | | -# yarn clean |
27 | | - |
28 | | -# - name: Build |
29 | | -# run: | |
30 | | -# yarn build |
31 | | - |
32 | | -# - name: Check Build |
33 | | -# run: | |
34 | | -# sudo -i |
35 | | -# sudo chown -R $USER ./dist |
36 | | - |
37 | | -# - name: Docschina Github Action |
38 | | -# id: deployStatic |
39 | | -# uses: lcxfs1991/docschina-actions@master |
40 | | -# with: |
41 | | -# skipFiles: ${{ secrets.SKIP_FILES }} |
42 | | -# secretId: ${{ secrets.SECRET_ID }} |
43 | | -# secretKey: ${{ secrets.SECRET_KEY }} |
44 | | -# staticSrcPath: ./dist |
45 | | -# bucket: ${{ secrets.BUCKET }} |
46 | | -# region: ${{ secrets.REGION }} |
47 | | -# forceFiles: ${{ secrets.FORCE_FILES }} |
| 1 | +# This file should modified carefully. |
| 2 | + |
| 3 | +name: CI |
| 4 | + |
| 5 | +# Controls when the action will run. Triggers the workflow on push or pull request |
| 6 | +# events but only for the master branch |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: [] |
| 10 | + |
| 11 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 12 | +jobs: |
| 13 | + # This workflow contains a single job called "build" |
| 14 | + build: |
| 15 | + # The type of runner that the job will run on |
| 16 | + runs-on: ubuntu-latest |
| 17 | + |
| 18 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 19 | + steps: |
| 20 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + |
| 23 | + - name: Install |
| 24 | + run: | |
| 25 | + yarn |
| 26 | + yarn clean |
| 27 | +
|
| 28 | + - name: Build |
| 29 | + run: | |
| 30 | + yarn build |
| 31 | +
|
| 32 | + - name: Check Build |
| 33 | + run: | |
| 34 | + sudo -i |
| 35 | + sudo chown -R $USER ./dist |
| 36 | +
|
| 37 | + - name: Docschina Github Action |
| 38 | + id: deployStatic |
| 39 | + uses: lcxfs1991/docschina-actions@master |
| 40 | + with: |
| 41 | + skipFiles: ${{ secrets.SKIP_FILES }} |
| 42 | + secretId: ${{ secrets.SECRET_ID }} |
| 43 | + secretKey: ${{ secrets.SECRET_KEY }} |
| 44 | + staticSrcPath: ./dist |
| 45 | + bucket: ${{ secrets.BUCKET }} |
| 46 | + region: ${{ secrets.REGION }} |
| 47 | + forceFiles: ${{ secrets.FORCE_FILES }} |
0 commit comments