Skip to content

Commit

Permalink
Create gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
PunitSoniME authored Jul 29, 2024
1 parent b77587f commit 39be892
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/gh-pages
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy on Github Pages

on:
push:
branches: [ "main" ]

jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out
# You may use a newer version of https://github.com/actions/checkout
uses: actions/checkout@v4

- name: Generate your content
run: npm install && cd example && npm install && cd.. && npm run deploy

- name: Publish current workdir (which contains generated content) to GitHub Pages
uses: rayluo/github-pages-overwriter@v1.3

with:

# Optional.
#
# Default value "." means the root directory of your project will be published.
#
# You can use whatever directory your project uses,
# for example "wwwroot" (without leading "./").
# Such a directory does *not* have to already exist in your repo,
# it could be an output directory created dynamically
# by your static website builder.
source-directory: example/dist

# Optional. Default value "gh-pages".
# It specifies the temporary branch which hosts the static website.
# Each build will OVERWRITE this branch.
target-branch: gh-pages

0 comments on commit 39be892

Please sign in to comment.