File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Content Sync
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' Content/**'
9+
10+ jobs :
11+ sync-content :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Setup .NET
19+ uses : actions/setup-dotnet@v4
20+ with :
21+ dotnet-version : ' 9.0.x'
22+
23+ - name : Build ContentLoader
24+ run : |
25+ dotnet build ContentLoader/ContentLoader.csproj --configuration Release
26+
27+ - name : Upload Content
28+ env :
29+ AZURE_STORAGE_CONNECTION_STRING : ${{ secrets.CONTENT_STORAGE_CONNECTION_STRING }}
30+ run : dotnet run --project ContentLoader/ContentLoader.csproj --configuration Release -- Content
31+
32+ - name : Handle Failure
33+ if : failure()
34+ run : |
35+ echo "Content sync failed. Check the build output and Azure Storage connection string."
36+ exit 1
You can’t perform that action at this time.
0 commit comments