mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 08:38:34 +00:00
chore: update workflow
This commit is contained in:
12
.github/workflows/build-livedemo.yml
vendored
12
.github/workflows/build-livedemo.yml
vendored
@@ -2,9 +2,9 @@ name: Build Pathfinder LiveDemo Version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [pathfinder]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [pathfinder]
|
||||
|
||||
# Cancels all previous workflow runs for pull requests that have not completed.
|
||||
# See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
||||
@@ -16,7 +16,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Lint nad Build
|
||||
name: Lint and Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
registry-url: https://npm.pkg.github.com
|
||||
scope: '@toeverything'
|
||||
cache: 'pnpm'
|
||||
|
||||
|
||||
- run: node scripts/module-resolve/ci.js
|
||||
|
||||
- name: Restore cache
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
push_to_registry:
|
||||
# See https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
|
||||
name: Push Docker image to Docker Hub
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/pathfinder'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
IMAGE_NAME: affine-pathfinder
|
||||
IMAGE_TAG: canary-${{ github.sha }}
|
||||
IMAGE_TAG_LATEST: nightly-latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user