Skip to content

Commit

Permalink
feat(gh-pages): add github pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IhsenBouallegue committed Nov 29, 2024
1 parent 406b116 commit 5562218
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy GitHub Pages

on:
workflow_dispatch:
inputs:
clean_deploy:
description: 'Clean deployment (removes all existing files)'
type: boolean
default: false
required: false
push:
paths:
- 'gh-pages/**'
branches:
- main

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
token: ${{ secrets.DEPLOY_TOKEN }}
branch: gh-pages
folder: gh-pages
clean: ${{ inputs.clean_deploy }}
clean-exclude: |
stg/**
visualization/**

0 comments on commit 5562218

Please sign in to comment.