Merge pull request #1576 from jplag/develop #3
This file contains 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: Documentation | |
on: | |
push: | |
branches: | |
- main | |
tags: "v**" | |
paths: | |
- 'docs/**' | |
- '.github/workflows/docs.yml' | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.SDQ_DEV_DEPLOY_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }}.wiki | |
path: wiki | |
token: ${{ secrets.SDQ_DEV_DEPLOY_TOKEN }} | |
- name: Remove contents in Wiki | |
working-directory: wiki | |
run: ls -A1 | grep -v '.git' | xargs rm -r | |
- name: Copy Wiki from Docs folder | |
run: cp -r ./docs/. ./wiki | |
- name: Deploy 🚀 | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
repository: wiki |