Skip to content

Commit

Permalink
chore : testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyabrain committed Feb 18, 2022
1 parent 5fb0ebd commit a0c7629
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 120 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
run: |
echo "setting variables"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
cd annotators/annotation-ui
npm run build
ls annotators/backend | grep public
- name: Publish to Docker
Expand Down
1 change: 1 addition & 0 deletions annotators/annotation-ui/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"gatsby-plugin-styled-components",
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
`gatsby-source-local-git-modern`,
{
resolve: `gatsby-plugin-mdx`,
options: {
Expand Down
125 changes: 125 additions & 0 deletions annotators/annotation-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions annotators/annotation-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"gatsby-plugin-web-font-loader": "^1.0.4",
"gatsby-remark-highlight-code": "^3.0.1",
"gatsby-source-filesystem": "^4.0.0",
"gatsby-source-local-git-modern": "^2.0.1",
"gatsby-transformer-sharp": "^4.0.0",
"grommet": "^2.18.0",
"grommet-icons": "^4.6.2",
Expand Down
7 changes: 6 additions & 1 deletion annotators/annotation-ui/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const preference = {
language: "en",
};

const IndexPage = () => {
const IndexPage = ({ data }) => {
const { t } = useTranslation();
const { languages, changeLanguage } = useI18next();

Expand All @@ -21,6 +21,7 @@ const IndexPage = () => {
<Box>
<h1>{t("Tattle Annotator")}</h1>
<p>{t("Welcome")}</p>
<p>{"commit : " + data.gitCommit.hash}</p>
</Box>
</Grommet>
);
Expand All @@ -39,5 +40,9 @@ export const query = graphql`
}
}
}
gitCommit(latest: { eq: true }) {
hash
date
}
}
`;

0 comments on commit a0c7629

Please sign in to comment.