Fix deployment bundle size and chunking configuration #5
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 to Permaweb | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build project | |
| run: bun run build | |
| env: | |
| BUN_ENV: production | |
| - name: Create .nojekyll file | |
| run: touch dist/.nojekyll | |
| - name: Deploy to Permaweb | |
| run: | | |
| npx permaweb-deploy \ | |
| --arns-name=argo \ | |
| --deploy-folder=dist | |
| env: | |
| DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} |