mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-06-12 00:24:50 +08:00
* fix: Outputs object is always empty output is only set if comment on commit or pull is enabled.
22 lines
571 B
YAML
22 lines
571 B
YAML
name: deploy website preview
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./
|
|
id: now-deployment
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
zeit-token: ${{ secrets.ZEIT_TOKEN }}
|
|
github-comment: false
|
|
now-org-id: ${{ secrets.NOW_ORG_ID }}
|
|
now-project-id: ${{ secrets.NOW_PROJECT_ID_STATIC }}
|
|
- name: preview-url
|
|
run: |
|
|
echo ${{ steps.now-deployment.outputs.preview-url }} |