-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.87 KB
/
ci.yaml
File metadata and controls
56 lines (51 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches:
- main
paths:
- packages/**
- scripts/sync-dockerhub-readme.ts
- .github/workflows/ci.yaml
- .github/workflows/publish.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
detect-changes:
name: Detect Package Changes
runs-on: ubuntu-latest
outputs:
nitro-cli: ${{ steps.filter.outputs.nitro-cli }}
auth-proxy: ${{ steps.filter.outputs.auth-proxy }}
walrus-upload-relay: ${{ steps.filter.outputs.walrus-upload-relay }}
global: ${{ steps.filter.outputs.global }}
steps:
- name: 🛎 Checkout
uses: actions/checkout@v6
- name: 🔍 Detect changed packages
uses: dorny/paths-filter@v4
id: filter
with:
filters: |
nitro-cli:
- 'packages/nitro-cli/**'
auth-proxy:
- 'packages/auth-proxy/**'
walrus-upload-relay:
- 'packages/walrus-upload-relay/**'
global:
- 'scripts/sync-dockerhub-readme.ts'
- '.github/workflows/ci.yaml'
- '.github/workflows/publish.yaml'
trigger:
name: Publish Packages
needs: detect-changes
uses: ./.github/workflows/publish.yaml
with:
deploy-nitro-cli: ${{ needs.detect-changes.outputs.nitro-cli == 'true' || needs.detect-changes.outputs.global == 'true' }}
deploy-auth-proxy: ${{ needs.detect-changes.outputs.auth-proxy == 'true' || needs.detect-changes.outputs.global == 'true' }}
deploy-walrus-upload-relay: ${{ needs.detect-changes.outputs.walrus-upload-relay == 'true' || needs.detect-changes.outputs.global == 'true' }}
# Add more packages below as needed
# deploy-foo: ${{ needs.detect-changes.outputs.foo == 'true' || needs.detect-changes.outputs.global == 'true' }}
secrets: inherit