-
Notifications
You must be signed in to change notification settings - Fork 357
40 lines (33 loc) · 994 Bytes
/
ci.yml
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
name: CI
on:
push:
branches: [main, feature.*]
tags: ['[0-9]+.[0-9]+.*']
pull_request:
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
double_check:
name: Double-check
runs-on: ubuntu-latest
needs: [test]
if: "startsWith(github.ref, 'refs/tags/') && github.event.repository.fork == false"
steps:
- uses: actions/checkout@v4
- uses: ./.github/util/initialize
with: {github-token: "${{ github.token }}"}
- name: Run checks
run: dart run grinder double-check-before-release
test_vendor:
needs: [double_check]
if: "startsWith(github.ref, 'refs/tags/') && github.event.repository.fork == false"
uses: ./.github/workflows/test-vendor.yml
secrets: inherit
release:
needs: [test_vendor]
if: "startsWith(github.ref, 'refs/tags/') && github.event.repository.fork == false"
permissions:
contents: write
uses: ./.github/workflows/release.yml
secrets: inherit