-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04c016
commit 413f6a8
Showing
2 changed files
with
96 additions
and
3 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,62 @@ | ||
name: Test/Deploy Master | ||
|
||
on: | ||
push: | ||
branches: ['development'] | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn install | ||
- name: Eslint check | ||
run: yarn run lint | ||
|
||
deploy-docs: | ||
needs: build-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger Developer Event | ||
uses: peter-evans/repository-dispatch@main | ||
with: | ||
token: ${{ secrets.DOCS_REFRESH_TOKEN }} | ||
repository: neo4j-documentation/docs-refresh | ||
event-type: labs | ||
|
||
build-s3: | ||
needs: build-test | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: development | ||
url: https://development.graphapp.io/ | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: rm -rf docs | ||
- run: yarn install | ||
- run: yarn run build-minimal | ||
# - run: curl ${{ vars.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html | ||
- uses: kersvers/[email protected] | ||
with: | ||
args: --delete | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }} | ||
DISTRIBUTION_ID: ${{ vars.AWS_CDN_ID }} | ||
AWS_REGION: 'us-east-1' | ||
SOURCE_DIR: 'dist' |
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 |
---|---|---|
|
@@ -11,14 +11,15 @@ jobs: | |
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn install | ||
- name: Eslint check | ||
run: yarn run lint | ||
|
||
deploy-docs: | ||
needs: build-test | ||
runs-on: ubuntu-latest | ||
|
@@ -28,4 +29,34 @@ jobs: | |
with: | ||
token: ${{ secrets.DOCS_REFRESH_TOKEN }} | ||
repository: neo4j-documentation/docs-refresh | ||
event-type: labs | ||
event-type: labs | ||
|
||
build-s3: | ||
needs: build-test | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
url: https://graphapp.io/ | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: rm -rf docs | ||
- run: yarn install | ||
- run: yarn run build-minimal | ||
# - run: curl ${{ vars.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html | ||
- uses: kersvers/[email protected] | ||
with: | ||
args: --delete | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }} | ||
DISTRIBUTION_ID: ${{ vars.AWS_CDN_ID }} | ||
AWS_REGION: 'us-east-1' | ||
SOURCE_DIR: 'dist' |