Merge pull request #4 from ccoenen/patch-1 #14
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: Publish docs to Wiki | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- wiki/** | |
branches: | |
- master | |
env: | |
USER_TOKEN: ${{ secrets.WIKI_TOKEN }} | |
USER_NAME: "GitHub Actions" | |
USER_EMAIL: "[email protected]" | |
OWNER: input-leap | |
REPOSITORY_NAME: input-leap | |
jobs: | |
publish_docs_to_wiki: | |
name: Publish docs to Wiki | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Add Wiki as a remote | |
run: git remote add wiki https://$OWNER:[email protected]/$OWNER/$REPOSITORY_NAME.wiki | |
- name: Make sure to fetch remotes, unshallowed | |
run: git fetch --unshallow origin | |
- name: Mirror all commits to production Wiki remote. | |
run: git push --force wiki master:master |