Skip to content

Commit

Permalink
deploy workflow check BUILD_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Jan 27, 2025
1 parent f307464 commit 761f2f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/oci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
# execute commands
script: |
cd ~/matheditor
echo "Creating a backup of the current build..."
cp -r .next temp
echo "Copying cache..."
cp -r .next/cache temp/cache
echo "Pulling latest changes..."
git fetch
git reset --hard origin/master
Expand All @@ -32,8 +32,8 @@ jobs:
npx prisma migrate deploy
echo "Building to temp directory..."
BUILD_DIR=temp npm run build || exit
if [ ! -d "temp" ]; then
echo '\033[31m temp Directory not exists!\033[0m'
if [ ! -f "temp/BUILD_ID" ]; then
echo '\033[31m Build failed!\033[0m'
exit 1;
fi
echo "Switching live directory..."
Expand Down
5 changes: 1 addition & 4 deletions src/editor/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
min-width: 75px;
max-width: 200px;
padding: 8px;
text-align: start;
position: relative;
outline: none;
height: inherit;
Expand All @@ -225,10 +226,6 @@
overflow: inherit;
}

.LexicalTheme__tableCellHeader {
text-align: start;
}

.LexicalTheme__tableCellSelected {
caret-color: transparent;
}
Expand Down
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@
],
"@public/*": [
"./public/*"
],
]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"next-env.d.ts",
"temp/types/**/*.ts"
],
"exclude": ["node_modules", ".next"]
"exclude": [
"node_modules",
".next"
]
}

0 comments on commit 761f2f5

Please sign in to comment.