diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 2866e87..b2fe745 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -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: diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index bd11003..e9f67ec 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -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::$(网文小密圈 + + +
+ 潇洒哥和黑大帅 +
+