Skip to content

Commit 6a3e431

Browse files
committed
Docs Improvement With CI
1 parent 4d7d60a commit 6a3e431

3 files changed

Lines changed: 46 additions & 14 deletions

File tree

‎.dockerignore‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# IDE
6+
.vs
7+
.vscode
8+
.idea
9+
**/*.user
10+
**/*.suo
11+
12+
# .NET build artifacts
13+
**/bin
14+
**/obj
15+
16+
# Test / coverage artifacts
17+
**/TestResults
18+
**/coverage
19+
**/coverage.*
20+
**/*.trx
21+
22+
# OS files
23+
.DS_Store
24+
Thumbs.db

‎.github/workflows/deploy.yml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ jobs:
1818
username: ${{ secrets.SERVER_USER }}
1919
key: ${{ secrets.SSH_PRIVATE_KEY }}
2020
script: |
21+
set -e
22+
2123
cd ~/apps/UltimateAuth
22-
git pull origin master
24+
25+
git fetch origin master
26+
git reset --hard origin/master
27+
28+
echo "Deploying commit:"
29+
git log -1 --oneline
30+
2331
cd .docker
32+
2433
docker compose down
2534
docker compose up -d --build
26-

‎src/utilities/CodeBeam.UltimateAuth.DocsBuilder/Program.cs‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,18 @@
8686
GroupOrder = groupOrder
8787
});
8888

89-
//var inputLastWrite = File.GetLastWriteTimeUtc(file);
90-
91-
//if (File.Exists(outputPath))
92-
//{
93-
// var outputLastWrite = File.GetLastWriteTimeUtc(outputPath);
94-
95-
// if (outputLastWrite >= inputLastWrite)
96-
// {
97-
// Console.WriteLine($"⏩ Skipped: {relativePath}");
98-
// continue;
99-
// }
100-
//}
89+
var inputLastWrite = File.GetLastWriteTimeUtc(file);
90+
91+
if (File.Exists(outputPath))
92+
{
93+
var outputLastWrite = File.GetLastWriteTimeUtc(outputPath);
94+
95+
if (outputLastWrite >= inputLastWrite)
96+
{
97+
Console.WriteLine($"⏩ Skipped: {relativePath}");
98+
continue;
99+
}
100+
}
101101

102102
Console.WriteLine($"⚙ Processing: {relativePath}");
103103

0 commit comments

Comments
 (0)