Skip to content

Commit

Permalink
add some
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingjam committed Nov 18, 2024
1 parent 68a5796 commit e12bd22
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/deploy-vercel.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,42 @@
name: Deploy
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
name: Deploy webapp to Vercel
on: [push]

concurrency:
group: ${{ github.ref }}-webapp
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

permissions:
contents: write # allow commenting on commits (when pushing to master)
pull-requests: write # allow commenting on PR's (when pushing to a PR)
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
submodules: recursive
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
nix develop --command pnpm install --frozen-lockfile
nix develop --command pnpm run build

- run: nix develop -c rainix-sol-prelude
working-directory: lib/rain.interpreter
- run: nix develop -c rainix-rs-prelude
working-directory: lib/rain.interpreter
- run: nix develop -c rainix-sol-prelude
working-directory: lib/rain.interpreter/lib/rain.metadata
- run: nix develop -c rainix-rs-prelude
working-directory: lib/rain.interpreter/lib/rain.metadata
- run: nix develop -c rainix-sol-prelude
- run: nix develop -c rainix-rs-prelude
- run: nix develop -c raindex-prelude
- run: nix develop -c npm run build
working-directory: packages/ui-components
- run: nix develop -c npm run build
working-directory: packages/orderbook
- run: nix develop -c npm run svelte-lint-format-check
working-directory: packages/webapp
- run: nix develop -c npm run test
working-directory: packages/webapp

- uses: amondnet/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e12bd22

Please sign in to comment.