-
Notifications
You must be signed in to change notification settings - Fork 819
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: solo ci & package update without the content changes (#18)
* feat: solo ci & package update without the content changes * style: year bumped * Update README.md Co-authored-by: barakshani <35497694+barakshani@users.noreply.github.com> Co-authored-by: barakshani <35497694+barakshani@users.noreply.github.com>
- Loading branch information
1 parent
7c13a2c
commit f4d718f
Showing
36 changed files
with
7,052 additions
and
9,107 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,17 @@ | ||
{ | ||
"projects": { | ||
"default": "zksync-web-v2-docs" | ||
"default": "aqwzx-zksync-v2-docs" | ||
}, | ||
"targets": { | ||
"aqwzx-zksync-v2-docs": { | ||
"hosting": { | ||
"prod": [ | ||
"aqwzx-zksync-v2-docs" | ||
], | ||
"staging": [ | ||
"docs-v2-zksync" | ||
] | ||
} | ||
} | ||
} | ||
} |
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 preview" | ||
"on": | ||
pull_request | ||
jobs: | ||
build_and_preview: | ||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
output_urls: "${{ steps.preview_deploy.outputs.urls }}" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Enable yarn cache" | ||
uses: c-hive/gha-yarn-cache@v2 # using cache | ||
|
||
- name: "Setup node@14" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
yarn set version 3.1.1 | ||
yarn install | ||
- name: "Generate rinkeby dist" | ||
run: yarn run docs:build | ||
|
||
- name: "Deploy preview" | ||
uses: matter-labs/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AQWZX_ZKSYNC_V2_DOCS }}" | ||
target: prod | ||
projectId: aqwzx-zksync-v2-docs |
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,45 @@ | ||
name: "Deploy production" | ||
"on": | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
type: string | ||
description: "The branch, tag or SHA to checkout" | ||
required: true | ||
default: "HEAD" | ||
jobs: | ||
build_and_deploy: | ||
if: ${{ github.event.repository.full_name == github.repository }} | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: "${{ github.event.inputs.ref }}" | ||
fetch-depth: 0 | ||
# Whether to configure the token or SSH key with the local git config | ||
# Default: true | ||
persist-credentials: false # <--- checking this in commit context | ||
|
||
- name: "Enable yarn cache" | ||
uses: c-hive/gha-yarn-cache@v2 # using cache | ||
|
||
- name: "Setup node@14" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
yarn set version 3.1.1 | ||
yarn install | ||
- name: "Deploy production" | ||
run: yarn run docs:build | ||
- uses: matter-labs/action-hosting-deploy@v0 | ||
with: | ||
repoToken: '${{ secrets.GITHUB_TOKEN }}' | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AQWZX_ZKSYNC_V2_DOCS }}" | ||
target: prod | ||
projectId: aqwzx-zksync-v2-docs | ||
channelID: live |
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,32 @@ | ||
name: "Deploy staging" | ||
"on": | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
build_and_deploy: | ||
if: ${{ github.event.repository.full_name == github.repository }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: "Enable yarn cache" | ||
uses: c-hive/gha-yarn-cache@v2 # using cache | ||
|
||
- name: "Setup node@14" | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
yarn set version 3.1.1 | ||
yarn install | ||
- name: "Deploy target: rinkeby-staging" | ||
run: yarn run docs:build | ||
- uses: matter-labs/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_AQWZX_ZKSYNC_V2_DOCS }}" | ||
target: staging | ||
projectId: aqwzx-zksync-v2-docs | ||
channelID: live |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
f4d718f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..