name: Publish Wiki # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the master branch push: branches: [ main ] paths: [ 'docs/**' ] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: publish: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: Upload Documentation to Wiki uses: SwiftDocOrg/github-wiki-publish-action@v1 with: path: "docs" env: GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}