-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (34 loc) · 916 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:
pull_request:
workflow_dispatch:
workflow_call:
push:
branches:
- main
release:
types: [ created ]
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
tests:
uses: ./.github/workflows/run_tests.yml
permissions:
contents: read
checks: write # required by mikepenz/action-junit-report
publish-maven:
needs: tests
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/run_publish_maven.yml
secrets: inherit
permissions:
contents: read
packages: write
publish-site:
needs: tests
if: github.ref == 'refs/heads/main' && github.event_name == 'release' && github.event.action == 'created'
uses: ./.github/workflows/run_publish_site.yml
permissions:
contents: read
packages: write