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: now cli v17, add NOW_PROJECT_ID and NOW_ORG_ID env variable #26

Merged
merged 15 commits into from
Feb 18, 2020
Next Next commit
docs: example
amondnet committed Dec 2, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
amondnet Minsu Lee
commit d6c7230e52ebc943d72d21d461e2e11ac4db89ed
4 changes: 2 additions & 2 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: deploy website preview
name: production
on:
push:
branches:
- master

jobs:
deploy:
prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
21 changes: 21 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: deploy website preview
on:
push:
# branches:
# - master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: static
run: |
echo 'static example'
cd example/static
- uses: ../../
id: now-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
now-args: '--prod'
2 changes: 2 additions & 0 deletions example/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yay
22
15 changes: 15 additions & 0 deletions example/static/now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "zeit-now-deployment-action-example-static",
"version": 2,
"scope": "amond",
"public": false,
"github": {
"enabled": false
},
"builds": [
{ "src": "./public/**", "use": "@now/static" }
],
"routes": [
{ "src": "/(.*)", "dest": "public/$1" }
]
}