Wiki update (#9313) #79
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: Publish wiki | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - docs/** | |
| - .github/workflows/sync-wiki.yml | |
| workflow_dispatch: | |
| concurrency: | |
| group: publish-wiki | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish-wiki: | |
| if: github.repository_owner == 'Card-Forge' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: fix md links for Gollum | |
| run: find ${{ github.workspace }}/docs/ -type f -name "*.md" -exec sed -i -E 's|(\[[^]]+]\()([^)]+\/)*([^).]+).md(#)*([[:alnum:]]*)\)|\1\3\4\5)|g' '{}' \; | |
| - name: fix image links for Gollum | |
| run: find ${{ github.workspace }}/docs/ -type f -name "*.png" -exec mv '{}' ${{ github.workspace }}/docs/ \; | |
| - uses: Andrew-Chen-Wang/github-wiki-action@v5 | |
| with: | |
| path: docs | |
| preprocess: false | |
| strategy: init |