forked from zio/zio-sql
-
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.
Merge pull request zio#770 from khajavi/publish-docs-to-npm-registry
Publish Docs to The NPM Registry
- Loading branch information
Showing
33 changed files
with
75 additions
and
30,983 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 |
---|---|---|
|
@@ -50,9 +50,22 @@ jobs: | |
- name: Run tests | ||
run: sbt ++${{ matrix.scala }}! test | ||
|
||
website: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout current branch | ||
uses: actions/[email protected] | ||
- name: Setup Scala and Java | ||
uses: olafurpg/setup-scala@v13 | ||
- name: Cache scala dependencies | ||
uses: coursier/cache-action@v6 | ||
- name: Check Document Generation | ||
run: sbt docs/compileDocs | ||
|
||
publish: | ||
runs-on: ubuntu-20.04 | ||
needs: [lint, test] | ||
needs: [lint, test, website] | ||
if: github.event_name != 'pull_request' | ||
steps: | ||
- name: Checkout current branch | ||
|
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,28 @@ | ||
# This file was autogenerated using `zio-sbt` via `sbt generateGithubWorkflow` | ||
# task and should be included in the git repository. Please do not edit | ||
# it manually. | ||
|
||
name: website | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Scala and Java | ||
uses: olafurpg/setup-scala@v13 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Publishing Docs to NPM Registry | ||
run: sbt docs/publishToNpm | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject | |
inThisBuild( | ||
List( | ||
organization := "dev.zio", | ||
homepage := Some(url("https://zio.github.io/zio-sql/")), | ||
homepage := Some(url("https://zio.dev/zio-sql/")), | ||
licenses := List("Apache-2.0" -> url("http:https://www.apache.org/licenses/LICENSE-2.0")), | ||
developers := List( | ||
Developer("jdegoes", "John De Goes", "[email protected]", url("http:https://degoes.net")) | ||
|
@@ -38,7 +38,6 @@ lazy val root = project | |
.aggregate( | ||
coreJVM, | ||
coreJS, | ||
docs, | ||
driver, | ||
examples, | ||
jdbc, | ||
|
@@ -82,7 +81,7 @@ lazy val docs = project | |
scalacOptions -= "-Xfatal-warnings" | ||
) | ||
.dependsOn(postgres) | ||
.enablePlugins(MdocPlugin, DocusaurusPlugin) | ||
.enablePlugins(WebsitePlugin) | ||
|
||
lazy val examples = project | ||
.in(file("examples")) | ||
|
This file was deleted.
Oops, something went wrong.
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
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 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,5 @@ | ||
{ | ||
"name": "@zio.dev/zio-sql", | ||
"description": "ZIO SQL Documentation", | ||
"license": "Apache-2.0" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const sidebars = { | ||
sidebar: [ | ||
"index", | ||
"deep-dive" | ||
] | ||
}; | ||
|
||
module.exports = sidebars; |
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.
Oops, something went wrong.