github.com/argoproj/argo-cd@v1.8.7/.github/workflows/gh-pages.yaml (about) 1 name: Deploy 2 3 on: 4 push: 5 branches: 6 - master 7 pull_request: 8 branches: 9 - 'master' 10 11 jobs: 12 deploy: 13 runs-on: ubuntu-latest 14 steps: 15 - uses: actions/checkout@v1 16 - name: Setup Python 17 uses: actions/setup-python@v1 18 with: 19 python-version: 3.x 20 - name: build 21 run: | 22 pip install mkdocs==1.0.4 mkdocs_material==4.1.1 23 mkdocs build 24 mkdir ./site/.circleci && echo '{version: 2, jobs: {build: {branches: {ignore: gh-pages}}}}' > ./site/.circleci/config.yml 25 - name: deploy 26 if: ${{ github.event_name == 'push' }} 27 uses: peaceiris/actions-gh-pages@v2.5.0 28 env: 29 PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} 30 PUBLISH_BRANCH: gh-pages 31 PUBLISH_DIR: ./site