Skip to content

Introduce NativeLink Web Platform #2

Introduce NativeLink Web Platform

Introduce NativeLink Web Platform #2

Workflow file for this run

---
name: Deploy NativeLink Web
on:
push:
branches: [main]
paths:
- 'web/app/**'
- '**/*.md'
- 'nativelink-config/**'
pull_request:
branches: [main]
paths:
- 'web/app/**'
- '**/*.md'
- 'nativelink-config/**'
permissions: read-all
jobs:
deploy:
name: Web App Deployment
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: >- # v4.1.1
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Nix
uses: >- # v10
DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563
- name: Cache Nix derivations
uses: >- # v4
DeterminateSystems/magic-nix-cache-action@fc6aaceb40b9845a02b91e059ec147e78d1b4e41
- name: Test deployment
working-directory: web/app
run: |
nix develop --impure --command bash -c "
bun staging --project=nativelink --org=nativelink
"
if: github.event_name == 'pull_request'
- name: Production deployment
working-directory: web/app
run: |
nix develop --impure --command bash -c "
bun prod --project=nativelink --org=nativelink
"
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'