Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support multiple preview jobs #16

Merged
merged 5 commits into from
Aug 20, 2020
Merged

feat: support multiple preview jobs #16

merged 5 commits into from
Aug 20, 2020

Conversation

afc163
Copy link
Owner

@afc163 afc163 commented Aug 20, 2020

这样可以定义多个部署预览任务,name 随意自取。

可以解决:umijs/dumi#287 (comment)

  preview:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ./
        name: test afc163/surge-preview
        with:
          surge_token: ${{ secrets.SURGE_TOKEN }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          build: |
            npm install
            npm run build
          dist: public
  preview2:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ./
        name: test afc163/surge-preview
        with:
          surge_token: ${{ secrets.SURGE_TOKEN }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          build: |
            npm install
            npm run build
          dist: public

@github-actions
Copy link

github-actions bot commented Aug 20, 2020

🎊 PR Preview be3e3c7 has been successfully built and deployed to https://afc163-surge-preview-preview2-pr-16.surge.sh

🕐 Build time: 32.445s

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Aug 20, 2020

🎊 PR Preview be3e3c7 has been successfully built and deployed to https://afc163-surge-preview-preview-pr-16.surge.sh

🕐 Build time: 40.908s

🤖 By surge-preview

Repository owner deleted a comment from github-actions bot Aug 20, 2020
Repository owner deleted a comment from github-actions bot Aug 20, 2020
@afc163 afc163 changed the title test feat: support multiple preview actions Aug 20, 2020
@afc163 afc163 changed the title feat: support multiple preview actions feat: support multiple preview jobs Aug 20, 2020
@afc163 afc163 merged commit be3e3c7 into main Aug 20, 2020
@afc163 afc163 deleted the test branch August 20, 2020 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant