Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 51 additions & 2 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- "vortex-web/**"
- ".github/workflows/web.yml"

build:
name: Build & Check
check:
name: Check & Lint
needs: [changes]
if: needs.changes.outputs.web == 'true'
runs-on: ubuntu-latest
Expand All @@ -62,3 +62,52 @@ jobs:
- run: npm run lint
- run: npm run typecheck
- run: npm run build-storybook

build:
name: Build
needs: [changes]
if: needs.changes.outputs.web == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-rust
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
enable-sccache: "false"
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
working-directory: .
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: vortex-web/package-lock.json
- run: npm ci
- run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: vortex-explorer
path: vortex-web/dist/

deploy:
name: Deploy to Cloudflare Pages
needs: [build]
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
deployments: write
environment:
name: github-pages
steps:
- uses: actions/download-artifact@v4
with:
name: vortex-explorer
path: dist
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/ --project-name=vortex-explorer --branch=${{ github.head_ref || github.ref_name }}
Loading