-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 936 Bytes
/
github-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Github Pages
on:
push:
branches:
- main
workflow_dispatch: # This enables manual triggering
concurrency:
group: pages-build # Name for the group of workflows to control concurrency
cancel-in-progress: true # Cancel any currently running workflow if a new one starts
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
pip install markdown2
- name: Build site
run: |
mkdir public
python -c "import markdown2; print(markdown2.markdown_path('README.md'))" > public/index.html
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public