fix: package.json #7
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: Deploy Static Site | |
| on: | |
| push: | |
| branches: | |
| - main # Your primary branch | |
| permissions: | |
| contents: write # REQUIRED for the action to push to the gh-pages branch | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| # Setup Node.js to run your scripts | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' # Use a stable Node version | |
| # Install dependencies and build | |
| - name: Install dependencies and Build 🏗️ | |
| run: | | |
| npm install | |
| npm run build | |
| # Deploy the contents of the 'dist' folder | |
| - name: Deploy to GitHub Pages 🚀 | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist | |
| cname: ${{ contains(github.ref, 'main') && 'rignitc.com' || '' }} |