Skip to content

Commit

Permalink
Update and rename blank.yml to markdown-to-html.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlee-06 authored Dec 16, 2024
1 parent a2f934c commit 00489b7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/blank.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/markdown-to-html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Convert Markdown to HTML

on:
push:
branches:
- main # Change this to your default branch if it's not 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
- name: Convert README.md to HTML
run: |
pandoc README.md -o index.html
- name: Commit and push changes
run: |
git config --local user.name "github-actions"
git config --local user.email "[email protected]"
git add index.html
git commit -m "Update index.html from README.md" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 00489b7

Please sign in to comment.