docs: example

This commit is contained in:
Minsu Lee
2019-12-03 00:55:57 +09:00
parent 7758a86df8
commit d6c7230e52
4 changed files with 40 additions and 2 deletions

View File

@@ -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
.github/workflows/static.yml vendored Normal file
View File

@@ -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'

View File

@@ -0,0 +1,2 @@
yay
22

15
example/static/now.json Normal file
View File

@@ -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" }
]
}