Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Move program methods and fetches to useAnchorProgram #20

Move program methods and fetches to useAnchorProgram

Move program methods and fetches to useAnchorProgram #20

Workflow file for this run

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-