mirror of
https://github.com/doocs/md.git
synced 2024-10-30 15:57:50 +08:00
docs: update user list (#5)
This commit is contained in:
parent
e7a0ded14a
commit
d47e60f4aa
10
.github/workflows/preview-build.yml
vendored
10
.github/workflows/preview-build.yml
vendored
@ -13,29 +13,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: set up node
|
- name: Set up node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "12"
|
node-version: "12"
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run build:h5-netlify
|
npm run build:h5-netlify
|
||||||
|
|
||||||
- name: upload dist artifact
|
- name: Upload dist artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
path: dist
|
path: dist
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: save PR number
|
- name: Save PR number
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: echo ${{ github.event.number }} > ./pr-id.txt
|
run: echo ${{ github.event.number }} > ./pr-id.txt
|
||||||
|
|
||||||
- name: upload PR number
|
- name: Upload PR number
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
14
.github/workflows/preview-deploy.yml
vendored
14
.github/workflows/preview-deploy.yml
vendored
@ -11,30 +11,30 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
|
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
|
||||||
steps:
|
steps:
|
||||||
- name: download PR artifact
|
- name: Download PR artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
name: pr
|
name: pr
|
||||||
|
|
||||||
- name: save PR id
|
- name: Save PR id
|
||||||
id: pr
|
id: pr
|
||||||
run: echo "::set-output name=id::$(<pr-id.txt)"
|
run: echo "::set-output name=id::$(<pr-id.txt)"
|
||||||
|
|
||||||
- name: download dist artifact
|
- name: Download dist artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
name: dist
|
name: dist
|
||||||
|
|
||||||
- name: upload surge service
|
- name: Upload surge service
|
||||||
id: deploy
|
id: deploy
|
||||||
run: |
|
run: |
|
||||||
export DEPLOY_DOMAIN=https://doocs-md-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
|
export DEPLOY_DOMAIN=https://doocs-md-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
|
||||||
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
npx surge --project ./ --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
||||||
|
|
||||||
- name: update status comment
|
- name: Upload status comment
|
||||||
uses: actions-cool/maintain-one-comment@v2
|
uses: actions-cool/maintain-one-comment@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -65,13 +65,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
|
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
|
||||||
steps:
|
steps:
|
||||||
- name: download PR artifact
|
- name: Download PR artifact
|
||||||
uses: dawidd6/action-download-artifact@v2
|
uses: dawidd6/action-download-artifact@v2
|
||||||
with:
|
with:
|
||||||
workflow: ${{ github.event.workflow_run.workflow_id }}
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
||||||
name: pr
|
name: pr
|
||||||
|
|
||||||
- name: save PR id
|
- name: Save PR id
|
||||||
id: pr
|
id: pr
|
||||||
run: echo "::set-output name=id::$(<pr-id.txt)"
|
run: echo "::set-output name=id::$(<pr-id.txt)"
|
||||||
|
|
||||||
|
2
.github/workflows/preview-start.yml
vendored
2
.github/workflows/preview-start.yml
vendored
@ -6,7 +6,7 @@ jobs:
|
|||||||
preview:
|
preview:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: create
|
- name: Create
|
||||||
uses: actions-cool/maintain-one-comment@v2
|
uses: actions-cool/maintain-one-comment@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -324,6 +324,12 @@ md-cli 支持以下命令行参数:
|
|||||||
<sub>网文小密圈</sub>
|
<sub>网文小密圈</sub>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center" style="width: 60px;">
|
||||||
|
<a href="https://mp.weixin.qq.com/s/k9WbW0zmxl0S2WX2CXQ6cQ">
|
||||||
|
<img src="https://cdn.jsdelivr.net/gh/filess/img6@main/2021/12/03/1638523595283-d702b1eb-a817-4ecf-8e3d-a63131259fa0.jpg" style="width: 40px;"><br>
|
||||||
|
<sub>潇洒哥和黑大帅</sub>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user