feat: add a TUI interface to rust-peer #62
Workflow file for this run
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: js-peer build | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
on: | |
push: | |
branches: [main] # Deploy every commit so we can CIDs for every commit on main | |
pull_request: | |
branches: [main] | |
paths: | |
- 'js-peer/**' # only run for PRs changing js-peer | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: js-peer | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- uses: ipfs/ipfs-deploy-action@v1 | |
name: Deploy to IPFS | |
id: deploy | |
with: | |
# 👇 note that working-directory doesn't apply to action steps with `uses`, so we need to specify the full path | |
path-to-deploy: js-peer/out | |
storacha-key: ${{ secrets.STORACHA_KEY }} | |
storacha-proof: ${{ secrets.STORACHA_PROOF }} | |
github-token: ${{ github.token }} |