diff --git a/workflows/deploy.yml b/workflows/deploy.yml new file mode 100644 index 0000000..31270fa --- /dev/null +++ b/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: update gh-pages from master branch + +on: + push: + branches: master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' # replace with your Node.js version + + - name: Install Dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Deploy to gh-pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: static