mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-25 19:24:55 +02:00
Update and rename main.yml to github-pages-deploy.yml
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
name: Deploy README to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
|
||||
- name: Copy README to index.md
|
||||
run: cp README.md index.md
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: .
|
||||
publish_branch: gh-pages
|
||||
Reference in New Issue
Block a user