Skip to content

Build and Deploy

Build and Deploy #42

Workflow file for this run

name: Build and Deploy
env:
CI: false
GITHUB_USERNAME: ${{ github.repository_owner }}
USE_GITHUB_DATA: "true"
MEDIUM_USERNAME: "saadpasta" # Change this to your medium username
on:
workflow_dispatch:
push:
branches:
- master
schedule:
- cron: "0 12 * * 1"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4 # βœ… Updated to v4
with:
persist-credentials: false
- name: Setup Node.js πŸ”§
uses: actions/setup-node@v4 # βœ… Updated to v4
with:
node-version: 20
- name: Update npm πŸš€
run: npm install -g npm@latest
- name: Install and Build πŸ”§
run: |
npm install
npm run build
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GH_PAT }} # βœ… Use a Personal Access Token (PAT)
branch: gh-pages
folder: build