forked from ota4j-team/open-test-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.63 KB
/
Copy path_publish.yml
File metadata and controls
51 lines (46 loc) · 1.63 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
name: Publish
on:
workflow_call:
permissions: {}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
publish_artifacts:
name: Snapshot Artifacts
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ota4j-team/open-test-reporting' && (startsWith(github.ref, 'refs/heads/releases/') || github.ref == 'refs/heads/main')
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 1
- name: Publish
uses: ./.github/actions/run-gradle
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
with:
arguments: publishAllPublicationsToMavenCentralSnapshotsRepository -x check
deploy_schemas:
name: Schemas
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'ota4j-team/open-test-reporting' && github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 1
- name: Configure Git
shell: bash
run: |
git config --global user.name "JUnit Team"
git config --global user.email "team@junit.org"
- name: Publish
uses: ./.github/actions/run-gradle
env:
GIT_USERNAME: git
GIT_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
arguments: gitPublishPush