Update .env #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |