This file contains 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: rktk-client | |
# | |
# on: | |
# push: | |
# branches: ["master"] | |
# paths: | |
# - 'tools/rktk-client/**' | |
# - 'lib/rktk-keymanager/**.rs' | |
# - 'lib/rktk-rrp/**.rs' | |
# - '.github/workflows/rktk-client.yml' | |
# - '.github/workflows/setup-rust/action.yaml' | |
# pull_request: | |
# paths: | |
# - 'tools/rktk-client/**' | |
# - 'lib/rktk-keymanager/**.rs' | |
# - 'lib/rktk-rrp/**.rs' | |
# - '.github/workflows/rktk-client.yml' | |
# - '.github/workflows/setup-rust/action.yaml' | |
# | |
# env: | |
# CARGO_TERM_COLOR: always | |
# | |
# jobs: | |
# check-and-deploy: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# | |
# - name: Setup rust | |
# uses: ./.github/workflows/setup-rust | |
# with: | |
# components: "rust-src" | |
# target: "wasm32-unknown-unknown" | |
# | |
# - uses: taiki-e/install-action@v2 | |
# with: | |
# tool: wasm-pack | |
# | |
# - uses: pnpm/action-setup@v4 | |
# name: Setup pnpm | |
# with: | |
# version: 9 | |
# run_install: false | |
# | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 20 | |
# cache: 'pnpm' | |
# cache-dependency-path: tools/rktk-client/pnpm-lock.yaml | |
# | |
# - name: pnpm install | |
# run: cd tools/rktk-client && pnpm install | |
# | |
# - name: Type check and build | |
# run: cd tools/rktk-client && pnpm build && pnpm tsc --noEmit | |
# | |
# - name: Deploy | |
# uses: cloudflare/wrangler-action@v3 | |
# with: | |
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
# command: pages deploy ./dist --project-name=rrpc | |
# workingDirectory: "tools/rktk-client" |