diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml new file mode 100644 index 000000000..f2e5e5cb5 --- /dev/null +++ b/.github/workflows/build-docs.yml @@ -0,0 +1,34 @@ +name: Build Docs + +on: + pull_request: + branches: + - master + paths: + - 'docs/**' + push: + branches: + - master + paths: + - 'docs/**' + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: borales/actions-yarn@v2.0.0 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.8" + - name: Capture branch and tag + id: branch_name + run: | + echo ::set-env name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/} + echo ::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + + - name: install dependencies + run: make dev-docs + - name: Build docs website + run: make build-docs-website \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index adb4f9b14..a1c0cca50 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,9 +4,19 @@ on: pull_request: branches: - master + paths: + - 'powertools-core/**' + - 'powertools-logging/**' + - 'powertools-sqs/**' + - 'powertools-tracing/**' push: branches: - master + paths: + - 'powertools-core/**' + - 'powertools-logging/**' + - 'powertools-sqs/**' + - 'powertools-tracing/**' jobs: build: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a79af691e..5eb6d98bd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,9 +1,6 @@ name: Docs on: - push: - branches: - - master release: types: - published diff --git a/docs/content/core/logging.mdx b/docs/content/core/logging.mdx index 6f21c8844..865b73432 100644 --- a/docs/content/core/logging.mdx +++ b/docs/content/core/logging.mdx @@ -101,7 +101,7 @@ public class App implements RequestHandler - This is disabled by default to prevent sensitive info being logged. + This is disabled by default to prevent sensitive info being logged.
```java:title=App.java diff --git a/docs/content/dummy.md b/docs/content/dummy.md new file mode 100644 index 000000000..d53b2cc3b --- /dev/null +++ b/docs/content/dummy.md @@ -0,0 +1,8 @@ +--- +title: Dummy title +description: Dummy description +--- + +## Test + +dummy content \ No newline at end of file diff --git a/docs/content/utilities/sqs_large_message_handling.mdx b/docs/content/utilities/sqs_large_message_handling.mdx index 0b334ad6f..cb6cee41f 100644 --- a/docs/content/utilities/sqs_large_message_handling.mdx +++ b/docs/content/utilities/sqs_large_message_handling.mdx @@ -11,7 +11,7 @@ The utility automatically retrieves messages which have been offloaded to S3 usi client library. Once the message payloads have been processed successful the utility can delete the message payloads from S3. -This utility is compatible with versions *1.1.0+* of amazon-sqs-java-extended-client-lib.

+This utility is compatible with versions *1.1.0+* of amazon-sqs-java-extended-client-lib. ```xml