Skip to content

Commit

Permalink
Update github pages automatically too
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 committed Apr 9, 2024
1 parent f5bd47f commit 3481bf7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ on:
branches:
- master
jobs:
gh-pages:
name: Update Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
publish_branch: gh-pages
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3481bf7

Please sign in to comment.