Update README.md #35
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: 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 |