Skip to content

Commit

Permalink
chore: add a github action to auto build gh-pages (argoproj#1082)
Browse files Browse the repository at this point in the history
* chore: add a github action to auto build gh-pages

Signed-off-by: Derek Wang <whynowy@gmail.com>

* fix

Signed-off-by: Derek Wang <whynowy@gmail.com>
  • Loading branch information
whynowy authored Feb 25, 2021
1 parent 8b77d27 commit ccaf9b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.15.7'
- name: build
run: |
pip install mkdocs==1.0.4 mkdocs_material==4.1.1
mkdocs build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site

0 comments on commit ccaf9b3

Please sign in to comment.