Skip to content

Commit

Permalink
Publish github pages automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tizoc committed Aug 11, 2024
1 parent f76b66a commit 68a730a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy README to GitHub Pages

on:
push:
branches:
- master

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

- name: Copy README.md to index.md
run: mkdir -p public; cp README.md public/index.md

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

0 comments on commit 68a730a

Please sign in to comment.