gh-pages #583
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: gh-pages | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
permissions: | |
contents: write # for peaceiris/actions-gh-pages to push pages branch | |
if: github.repository == 'argoproj/argo-events' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: build | |
run: | | |
pip install mkdocs==1.3.0 mkdocs_material==8.2.9 | |
mkdocs build | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site |