10000 ci: deploy nightly builds (#4685) · ngrx/platform@2266140 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
ci: deploy nightly builds (#4685)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Feb 4, 2025
1 parent 567baeb commit 2266140
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t e2e --exclude=docs-app --parallel=1

build:
schematics-core-check:
runs-on: ubuntu-latest
needs: install
steps:
Expand All @@ -95,9 +95,10 @@ jobs:
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile --prefer-offline
- uses: nrwl/nx-set-shas@v4
- run: pnpm exec nx run-many -t build --exclude=docs-app
- run: pnpm run copy:schematics
- run: pnpm run schematics:check

schematics-core-check:
build:
runs-on: ubuntu-latest
needs: install
steps:
Expand All @@ -112,5 +113,30 @@ jobs:
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile --prefer-offline
- uses: nrwl/nx-set-shas@v4
- run: pnpm run copy:schematics
- run: pnpm run schematics:check
- run: pnpm exec nx run-many -t build --exclude=docs-app
- uses: actions/upload-artifact@v4
with:
name: artifact-modules
path: dist/modules

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- uses: actions/download-artifact@v4
with:
name: artifact-modules
path: dist
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_DEPLOY_KEY }}
- run: pnpm run deploy:builds
2 changes: 1 addition & 1 deletion build/deploy-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { packages } from './config';

const deploy = createBuilder([
['Deploy builds', tasks.publishToRepo],
['Deploy docs', tasks.publishDocs],
// ['Deploy docs', tasks.publishDocs],
]);

deploy({
Expand Down

0 comments on commit 2266140

Please sign in to comment.
0