Skip to content

update keys and add them to deploy action #7

update keys and add them to deploy action

update keys and add them to deploy action #7

Workflow file for this run

name: Deploy Frontend to GitHub Pages
on:
push:
branches: [main]
paths:
- 'web/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.89.0
- name: Setup Solana
run: sh -c "$(curl -sSfL https://release.anza.xyz/beta/install)"
- run: export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
- uses: cargo-bins/cargo-binstall@main
- name: Inject Program Keypair
run: |
mkdir -p target/deploy
echo "${{ secrets.PROGRAM_KEYPAIR_BYTES }}" > target>deploy>cayed-keypair.json
- name: Install Anchor CLI
run: cargo binstall anchor-cli@0.32.1 --no-confirm --locked
- name: Anchor build
run: anchor build
shell: bash
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install client gen dependencies
run: bun install --frozen-lockfile
- name: Generate Codama Client
run: bun createCodamaClient.ts
- name: Install frontend dependencies
working-directory: web
run: bun install --frozen-lockfile
- name: Build frontend
working-directory: web
run: bun run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: web/dist
deploy:
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4