Skip to content

Commit

Permalink
docs: update user list (doocs#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Dec 3, 2021
1 parent e7a0ded commit d47e60f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: set up node
- name: Set up node
uses: actions/setup-node@v2
with:
node-version: "12"
check-latest: true

- name: build
- name: Build
run: |
npm install
npm run build:h5-netlify
- name: upload dist artifact
- name: Upload dist artifact
uses: actions/upload-artifact@v2
with:
name: dist
path: dist
retention-days: 5

- name: save PR number
- name: Save PR number
if: ${{ always() }}
run: echo ${{ github.event.number }} > ./pr-id.txt

- name: upload PR number
- name: Upload PR number
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: download PR artifact
- name: Download PR artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr

- name: save PR id
- name: Save PR id
id: pr
run: echo "::set-output name=id::$(<pr-id.txt)"

- name: download dist artifact
- name: Download dist artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
name: dist

- name: upload surge service
- name: Upload surge service
id: deploy
run: |
export DEPLOY_DOMAIN=https://doocs-md-preview-pr-${{ steps.pr.outputs.id }}.surge.sh
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -65,13 +65,13 @@ jobs:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps:
- name: download PR artifact
- name: Download PR artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: pr

- name: save PR id
- name: Save PR id
id: pr
run: echo "::set-output name=id::$(<pr-id.txt)"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: create
- name: Create
uses: actions-cool/maintain-one-comment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ md-cli 支持以下命令行参数:
<sub>网文小密圈</sub>
</a>
</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>
</table>

Expand Down

0 comments on commit d47e60f

Please sign in to comment.