Skip to content

Commit

Permalink
update deploy flow
Browse files Browse the repository at this point in the history
  • Loading branch information
SEAbdulbasit committed Feb 15, 2024
1 parent 0d979ac commit 4d717fa
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/depoly_github_pages.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Deploy GitHub Pages
name: Build and Deploy

on:
push:
branches:
- master # Or the name of your default branch
paths:
- 'docs/**'
- master # Set a branch to deploy from.

jobs:
deploy:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
fetch-depth: 0

- name: Setup GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
publish_dir: ./docs
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
COMMIT_MESSAGE: 'Deployed documentation to GitHub Pages'

0 comments on commit 4d717fa

Please sign in to comment.