Skip to content

Commit fb1d669

Browse files
authored
Auto-deploy of docs
1 parent 005ded8 commit fb1d669

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Docs
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: [ main ]
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Deploy to GitHub Pages
21+
if: success()
22+
uses: crazy-max/ghaction-github-pages@v2
23+
with:
24+
target_branch: gh-pages
25+
build_dir: docs
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)