Skip to content

Commit 2b9fc55

Browse files
fix: CI job must run on PR (#148)
CI job must run on PR Fix broken links in ADRs Signed-off-by: FabioPinheiro <[email protected]>
1 parent 0950bfb commit 2b9fc55

6 files changed

+26
-37
lines changed

.github/workflows/release-gh-pages.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Release gh-pages docs image
1+
name: Build & Deploy gh-pages
2+
run-name: CI on ${{ github.ref_name }}
23

34
on:
45
workflow_dispatch:
@@ -12,43 +13,31 @@ on:
1213
branches-ignore:
1314
- "gh-pages"
1415
push:
15-
branches: [main, gh-pages-test]
16+
branches: [main]
1617
tags: ["v*"]
1718

1819
jobs:
1920
ghpages:
20-
name: Deploy gh-pages
21+
name: Build and Deploy gh-pages
2122
runs-on: ubuntu-latest
22-
if: (inputs.force_deploy_ghpages == true) || (github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/gh-pages-test')
2323
steps:
2424
# https://github.com/japgolly/setup-everything-scala
2525
- uses: actions/checkout@v4
2626
with:
2727
submodules: recursive
2828
fetch-depth: 0 # Needed for the release tag // `git fetch --tags` will also work
29-
# - name: Setup Java and Scala
30-
# uses: olafurpg/setup-scala@v14
31-
# with:
32-
# java-version: [email protected]
3329
- name: Setup Node
3430
uses: actions/setup-node@v4
3531
with:
3632
node-version: "lts/*"
37-
# - name: Setup Scala.JS
38-
# uses: japgolly/setup-scalajs@v1
39-
# - name: Cache sbt
40-
# uses: coursier/[email protected]
41-
42-
# ### create build deploy gh-pages ###
43-
# - name: sbt "docAll; siteAll"
44-
# run: sbt -v "docAll; siteAll"
4533

4634
- name: Build
4735
run: |
4836
yarn install
4937
yarn build
5038
5139
- name: Deploy
40+
if: (inputs.force_deploy_ghpages == true) || (github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags/v')
5241
# https://github.com/marketplace/actions/github-pages-action
5342
uses: peaceiris/actions-gh-pages@v3
5443
with:

documentation/adrs/decisions/20230206-use-flyway-to-manage-migrations-for-application-services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use flyway to manage migrations for application services
22

3-
- Status: [ accepted | deprecated | superseded by [xxx](yyyymmdd-xxx.md)] <!-- optional -->
3+
- Status: [ accepted | deprecated | superseded by \[xxx\](yyyymmdd-xxx.md)] <!-- optional -->
44
- Deciders: [list everyone involved in the decision] <!-- optional -->
55
- Date: [YYYY-MM-DD when the decision was last updated] <!-- optional. To customize the ordering without relying on Git creation dates and filenames -->
66
- Tags: [space and/or comma separated list of tags] <!-- optional -->
@@ -69,5 +69,5 @@ Chosen option: "[option 1]", because [justification. e.g., only option, which me
6969

7070
## Links <!-- optional -->
7171

72-
- [Link type](link to adr) <!-- example: Refined by [xxx](yyyymmdd-xxx.md) -->
72+
- [Link type](link to adr) <!-- example: Refined by \[xxx\](yyyymmdd-xxx.md) -->
7373
-<!-- numbers of links can vary -->

documentation/adrs/decisions/20230206-use-scala3-instead-of-scala2-to-write-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use Scala3 instead of Scala2 to write applications
22

3-
- Status: [ accepted | deprecated | superseded by [xxx](yyyymmdd-xxx.md)] <!-- optional -->
3+
- Status: [ accepted | deprecated | superseded by \[xxx\](yyyymmdd-xxx.md)] <!-- optional -->
44
- Deciders: [list everyone involved in the decision] <!-- optional -->
55
- Date: [YYYY-MM-DD when the decision was last updated] <!-- optional. To customize the ordering without relying on Git creation dates and filenames -->
66
- Tags: [space and/or comma separated list of tags] <!-- optional -->
@@ -69,5 +69,5 @@ Chosen option: "[option 1]", because [justification. e.g. only option, which mee
6969

7070
## Links <!-- optional -->
7171

72-
- [Link type](link to adr) <!-- example: Refined by [xxx](yyyymmdd-xxx.md) -->
72+
- [Link type](link to adr) <!-- example: Refined by \[xxx\](yyyymmdd-xxx.md) -->
7373
-<!-- numbers of links can vary -->

documentation/adrs/decisions/20230206-use-zio-as-a-functional-effect-system-within-applications-to-manage-conccurency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use ZIO as a functional effect system within applications to manage conccurency
22

3-
- Status: [ accepted | deprecated | superseded by [xxx](yyyymmdd-xxx.md)] <!-- optional -->
3+
- Status: [ accepted | deprecated | superseded by \[xxx\](yyyymmdd-xxx.md)] <!-- optional -->
44
- Deciders: [list everyone involved in the decision] <!-- optional -->
55
- Date: [YYYY-MM-DD when the decision was last updated] <!-- optional. To customize the ordering without relying on Git creation dates and filenames -->
66
- Tags: [space and/or comma separated list of tags] <!-- optional -->
@@ -69,5 +69,5 @@ Chosen option: "[option 1]", because [justification. e.g. only option, which mee
6969

7070
## Links <!-- optional -->
7171

72-
- [Link type](link to adr) <!-- example: Refined by [xxx](yyyymmdd-xxx.md) -->
72+
- [Link type](link to adr) <!-- example: Refined by \[xxx\](yyyymmdd-xxx.md) -->
7373
-<!-- numbers of links can vary -->

documentation/adrs/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ Chosen option: "[option 1]", because [justification. e.g., only option, which me
7474

7575
## Links <!-- optional -->
7676

77-
- [Link type](link to adr) <!-- example: Refined by [xxx](yyyymmdd-xxx.md) -->
77+
- [Link type](link to adr) <!-- example: Refined by \[xxx\](yyyymmdd-xxx.md) -->
7878
-<!-- numbers of links can vary -->

src/pages/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ import AtalaGraphic from '../components/atala-graphic';
1010
import Blob from '../components/blob';
1111
import Button from '../components/button';
1212
function HomepageHeader() {
13-
const {siteConfig} = useDocusaurusContext();
13+
const { siteConfig } = useDocusaurusContext();
1414
return (
1515
<header className={clsx('hero', styles.heroBanner)}>
1616
<div className={clsx('container', styles.container)}>
17-
<div className={styles.hero__content}>
18-
<span className={clsx('hero__subtitle', styles.hero__tagline)}>{siteConfig.tagline}</span>
19-
<h1 className={clsx('hero__title', styles.hero__title)} dangerouslySetInnerHTML={{__html: siteConfig.title}}/>
20-
<Button
21-
className={clsx("button button--lg", styles.hero__button)}
22-
to="/docs/getting-started">
23-
Get Started
24-
</Button>
25-
</div>
26-
<AtalaGraphic/>
17+
<div className={styles.hero__content}>
18+
<span className={clsx('hero__subtitle', styles.hero__tagline)}>{siteConfig.tagline}</span>
19+
<h1 className={clsx('hero__title', styles.hero__title)} dangerouslySetInnerHTML={{ __html: siteConfig.title }} />
20+
<Button
21+
className={clsx("button button--lg", styles.hero__button)}
22+
to="/docs/getting-started">
23+
Get Started
24+
</Button>
25+
</div>
26+
<AtalaGraphic />
2727
</div>
2828
</header>
2929
);
3030
}
3131

3232
export default function Home() {
33-
const {siteConfig} = useDocusaurusContext();
33+
const { siteConfig } = useDocusaurusContext();
3434
return (
3535
<Layout
36-
title={`H${siteConfig.title}`}
36+
title={`${siteConfig.title}`}
3737
description="Description will go into a meta tag in <head />">
38-
<Blob/>
38+
<Blob />
3939
<HomepageHeader />
4040
<main>
4141
<HomepageFeatures />

0 commit comments

Comments
 (0)