Add waitlist functionality - Add to pricing buttons #80
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 Github Pages | |
| on: | |
| push: | |
| branches: main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: 'pages' | |
| cancel-in-progress: false | |
| 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: '18' | |
| cache: 'npm' | |
| - name: 🔽 Install dependencies | |
| run: npm ci | |
| - name: 🧪 Test lint | |
| run: npm run lint | |
| - name: 🧪 Test types | |
| run: npm run test-types | |
| - name: 🏭 Build | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_SKIP_WAITLIST_TOKEN: ${{ secrets.NEXT_PUBLIC_SKIP_WAITLIST_TOKEN }} | |
| # DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| # <- Note: This is only needed to successfully run the build | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY}} | |
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| - name: 🧪 Check build output | |
| run: | | |
| if [ ! -d "out" ]; then | |
| echo "Build output directory 'out' not found!" | |
| exit 1 | |
| fi | |
| echo "Build successful - output directory exists" | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| with: | |
| static_site_generator: next | |
| - name: 🔼 Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./out | |
| - name: 🔼 Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |