feat(core): added support to embedded registries #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Wiki Catalog | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-wiki: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - run: dotnet build | |
| - name: Generate wiki content | |
| run: | | |
| mkdir -p wiki_content | |
| dotnet run --project src/Wiki -- wiki_content | |
| - name: Clone wiki repository | |
| run: | | |
| git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/JeanxPereira/AssetData.Parser.wiki.git wiki | |
| - name: Sync wiki content | |
| run: | | |
| rm -rf wiki/Catalog | |
| cp -r wiki_content/Catalog wiki/ | |
| - name: Commit and push wiki | |
| run: | | |
| cd wiki | |
| git config user.name "ReCap Bot" | |
| git config user.email "actions@github.com" | |
| git add . | |
| git diff --cached --quiet || git commit -m "Auto-update: Catalog Reference" | |
| git push |