Move program methods and fetches to useAnchorProgram #20
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 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: github-pages | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| working-directory: app | |
| run: bun install | |
| - name: Build the project | |
| working-directory: app | |
| env: | |
| VITE_RPC_URL: ${{ secrets.VITE_RPC_URL }} | |
| run: bun run build | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "[email protected]" | |
| git add -f app/dist | |
| git commit -m "Deploy to gh-pages" | |
| git push --force origin `git subtree split --prefix app/dist HEAD`:refs/heads/gh-pages | |
| - name: Cache Bun dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.bun | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- |