Skip to content

Commit

Permalink
Update Figma images
Browse files Browse the repository at this point in the history
  • Loading branch information
Figma Images Action authored and lukasoppermann committed Oct 1, 2024
1 parent cc66e40 commit 01da806
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/getFigmaImages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: |
git config --global user.name 'Figma Images Action'
git config --global user.email '[email protected]'
rm ${{env.ImageUrlFile}}
git add -A ${{env.ImageOutputDir}}
git commit -m "Update Figma images"
git push
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"scripts": {
"start": "gatsby develop",
"clean": "gatsby clean",
"build": "gatsby build",
"build": "npm run copy:figma-images && gatsby build",
"serve": "gatsby serve",
"build:preview": "gatsby build",
"build:preview": "npm run copy:figma-images && gatsby build",
"now-build": "yarn build",
"lint": "eslint .",
"markdownlint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!node_modules\""
"markdownlint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!.github\" \"!node_modules\"",
"copy:figma-images": "mkdir -p public/images && cp -r content/images/figma public/images"
},
"dependencies": {
"@github/prettier-config": "^0.0.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/figma-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type FigmaImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {
caption?: string
}

const FigmaImageDir = 'content/images/figma';
const FigmaImageDir = 'public/images/figma';

export const FigmaImage: React.FC<FigmaImageProps> = ({src, caption, ...props}) => {
// check for missing prop
Expand Down

0 comments on commit 01da806

Please sign in to comment.