-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try CI * CI * CI * CI * Add stg and prd
- Loading branch information
Showing
4 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy develop | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: itering/actions | ||
path: .github/actions | ||
persist-credentials: false | ||
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}" | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy to Vercel | ||
id: smart-vercel | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
node_version: 18 | ||
dist_path: dist | ||
vercel_group: itering | ||
preview_output: true | ||
project_name: helix-docs | ||
enable_cache: true | ||
enable_notify_comment: true | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Deploy production | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: itering/actions | ||
path: .github/actions | ||
persist-credentials: false | ||
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}" | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy to Vercel | ||
id: smart-vercel | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
node_version: 18 | ||
dist_path: dist | ||
vercel_group: itering | ||
preview_output: true | ||
project_name: helix-docs | ||
prod_mode: true | ||
enable_cache: true | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy staging | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
repository: itering/actions | ||
path: .github/actions | ||
persist-credentials: false | ||
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}" | ||
|
||
- uses: ./.github/actions/smart-vercel | ||
name: Deploy to Vercel | ||
id: smart-vercel | ||
with: | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
node_version: 18 | ||
dist_path: dist | ||
vercel_group: itering | ||
preview_output: true | ||
project_name: helix-docs | ||
enable_cache: true | ||
enable_notify_slack: true | ||
slack_channel: helix-ui | ||
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"headers": [ | ||
{ | ||
"source": "/(.*)", | ||
"headers": [ | ||
{ | ||
"key": "X-Content-Type-Options", | ||
"value": "nosniff" | ||
}, | ||
{ | ||
"key": "Referrer-Policy", | ||
"value": "origin-when-cross-origin" | ||
}, | ||
{ | ||
"key": "X-Frame-Options", | ||
"value": "SAMEORIGIN" | ||
}, | ||
{ | ||
"key": "Strict-Transport-Security", | ||
"value": "max-age=2592000" | ||
} | ||
] | ||
} | ||
], | ||
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }] | ||
} |