mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-03-30 17:23:49 +08:00
test
Now Deployment
Github action to comment with the now.sh deployment preview URL
Inspired by netlify.com deployment preview comments
Result
Requirements
Example
- This is a complete
.github/workflow/deploy-preview.ymlexample. - Be sure to include
-m commit=${GITHUB_SHA} -m branch=${GITHUB_REF}in the now deploy command or the pull request comment will fail.
name: deploy website preview
on: [pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: amondnet/now-deployment-comment@release/v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
zeit-team-id: team_XXXXXXXXXXX
License WTFPL2
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
Description
Languages
JavaScript
51.9%
TypeScript
39.5%
HTML
8.2%
CSS
0.4%
