Skip to content

Commit

Permalink
Merge pull request #1339 from yogeshojha/yogeshojha-patch-1
Browse files Browse the repository at this point in the history
Fix github pages build
  • Loading branch information
yogeshojha authored Jul 30, 2024
2 parents 30f090e + d9d9238 commit 9550c0a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy README to GitHub Pages

on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Install dependencies
run: npm install -g markdown-to-html

- name: Convert README to HTML
run: markdown README.md > index.html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: gh-pages

0 comments on commit 9550c0a

Please sign in to comment.